Class: Work

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/work.rb

Constant Summary collapse

ACTIONS =
%w[start].freeze

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/renuo/cli/app/work.rb', line 10

def run(args)
  ActiveResource::Base.logger = Logger.new($stdout)
  @action, @project_name, @ticket_number = args
  validate_action
  validate_project_name
  validate_ticket_number
  start_feature_branch
  update_redmine_ticket
  start_toggl
end