Class: TM::Commands::CreateTask
- Defined in:
- lib/tm/commands/create_task.rb
Instance Method Summary collapse
Methods inherited from Command
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 |