class Chore

Private Instance Methods

create_issue_on_pivotal_data() click to toggle source
# File lib/caperoma/models/tasks/chore.rb, line 9
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/chore.rb, line 17
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/chore.rb, line 39
def inform_creation_finished
  puts 'A new chore started'
end
inform_creation_started() click to toggle source
# File lib/caperoma/models/tasks/chore.rb, line 35
def inform_creation_started
  puts 'Starting a new chore'
end
issue_type() click to toggle source
# File lib/caperoma/models/tasks/chore.rb, line 31
def issue_type
  project.chore_jira_task_id
end
story_type() click to toggle source
# File lib/caperoma/models/tasks/chore.rb, line 27
def story_type
  'chore'
end
this_is_a_type_a_user_wants_to_create?() click to toggle source
# File lib/caperoma/models/tasks/chore.rb, line 23
def this_is_a_type_a_user_wants_to_create?
  project.create_chores_in_pivotal
end