Class: Ptf::Cli::Task
- Inherits:
-
Thor
- Object
- Thor
- Ptf::Cli::Task
- Defined in:
- lib/ptf/client/task.rb
Instance Method Summary collapse
Instance Method Details
#close(id) ⇒ Object
25 26 27 |
# File 'lib/ptf/client/task.rb', line 25 def close(id) puts Ptf::Commands::Task.close(id) end |
#create ⇒ Object
10 11 12 |
# File 'lib/ptf/client/task.rb', line 10 def create puts Ptf::Commands::Task::Create.create([:title], [:group], [:date], [:estimate]) end |
#edit(id) ⇒ Object
15 16 17 |
# File 'lib/ptf/client/task.rb', line 15 def edit(id) puts Ptf::Commands::Task::Edit.edit(id.to_i) end |
#reopen(id) ⇒ Object
30 31 32 |
# File 'lib/ptf/client/task.rb', line 30 def reopen(id) puts Ptf::Commands::Task.reopen(id) end |
#show(id) ⇒ Object
20 21 22 |
# File 'lib/ptf/client/task.rb', line 20 def show(id) puts Ptf::Commands::Task.show(id) end |