class Fix

Public Instance Methods

description() click to toggle source
Calls superclass method
# File lib/caperoma/models/tasks/fix.rb, line 8
def description
  result = super
  last_commit = git_last_commit_name
  "#{result}\n(For: #{last_commit})"
end
finish(comment) click to toggle source
Calls superclass method TaskWithCommit#finish
# File lib/caperoma/models/tasks/fix.rb, line 14
def finish(comment)
  git_rebase_to_upstream
  super
end

Private Instance Methods

create_issue_on_pivotal_data() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 21
def create_issue_on_pivotal_data
  Jbuilder.encode do |j|
    j.current_state 'unstarted'
    j.name title.to_s
    j.story_type story_type
  end
end
finish_on_pivotal_data() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 29
def finish_on_pivotal_data
  Jbuilder.encode do |j|
    j.current_state 'accepted'
  end
end
inform_creation_finished() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 55
def inform_creation_finished
  puts 'A new fix started'
end
inform_creation_started() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 51
def inform_creation_started
  puts 'Starting a new fix'
end
issue_type() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 47
def issue_type
  project.fix_jira_task_id
end
story_type() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 39
def story_type
  'chore'
end
this_is_a_type_a_user_wants_to_create?() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 35
def this_is_a_type_a_user_wants_to_create?
  project.create_fixes_in_pivotal_as_chores
end
update_parent_branch() click to toggle source
# File lib/caperoma/models/tasks/fix.rb, line 43
def update_parent_branch
  git_rebase_to_upstream
end