class Circler::CancelCommand
Public Class Methods
run(options)
click to toggle source
# File lib/circler/command/cancel_command.rb, line 6 def run(options) setup_token username, reponame = project_name(options).split('/') number = build_number(options) 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