Class: Circler::CancelCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Circler::CancelCommand
- Defined in:
- lib/circler/command/cancel_command.rb
Class Method Summary collapse
Methods inherited from BaseCommand
build_number, project_name, reponame, setup_token, should_be_pretty
Class Method Details
.run(options) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/circler/command/cancel_command.rb', line 6 def run() setup_token username, reponame = project_name().split('/') number = build_number() build = Build.cancel(username, reponame, number) if build.username say "build #{build.project_name} #{build.build_number} is canceled." else say "failed to cancel #{username}/#{reponame} #{number}." end end |