Class: TM::Commands::CreateTask

Inherits:
Command
  • Object
show all
Defined in:
lib/tm/commands/create_task.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from TM::Commands::Command

Instance Method Details

#execute(task_attributes = '') ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/tm/commands/create_task.rb', line 5

def execute(task_attributes = '') 
  project = @provider_handler.taskmapper.project(@attributes)
  task_attributes = task_attributes.extend(TM::StringExtensions).to_hash
  task= project.ticket! task_attributes
  @formatter.before(task)
  @formatter.format(task)
  @formatter.after
end