class TaskWithSeparateBranch
Public Instance Methods
abort(comment)
click to toggle source
Calls superclass method
Task#abort
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 16 def abort(comment) super puts git_checkout(parent_branch) end
finish(comment)
click to toggle source
Calls superclass method
TaskWithCommit#finish
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 9 def finish(comment) puts comment super puts git_pull_request puts git_checkout(parent_branch) end
Private Instance Methods
branch_name()
click to toggle source
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 39 def branch_name # E.g.: ruc-123-first-three-four-words result = [jira_key, title[0, 25]].join(' ') ActiveSupport::Inflector.parameterize(result) end
description_for_pull_request()
click to toggle source
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 23 def description_for_pull_request pivotal_url end
remember_parent_branch()
click to toggle source
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 31 def remember_parent_branch self.parent_branch = git_current_branch end
set_branch()
click to toggle source
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 35 def set_branch update_column :branch, branch_name end
update_parent_branch()
click to toggle source
# File lib/caperoma/models/tasks/task_with_separate_branch.rb, line 27 def update_parent_branch git_rebase_to_upstream end