Class: Ptf::Cli::Task

Inherits:
Thor
  • Object
show all
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

#createObject



10
11
12
# File 'lib/ptf/client/task.rb', line 10

def create
  puts Ptf::Commands::Task::Create.create(options[:title], options[:group], options[:date], options[: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