Module: TicGitNG::Command::Points
- Defined in:
- lib/ticgit-ng/command/points.rb
Overview
Assigns points to a ticket
Usage: ti points 1 points (assigns points to a specified ticket)
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ticgit-ng/command/points.rb', line 12 def execute case args.size when 1 new_points = args[0].to_i when 2 tid = args[0] new_points = args[1].to_i else puts usage exit 1 end tic.ticket_points(new_points, tid) end |
#parser(opts) ⇒ Object
8 9 10 |
# File 'lib/ticgit-ng/command/points.rb', line 8 def parser(opts) opts. = "ti points [ticket_id] points" end |