Class: Circler::BuildsCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Circler::BuildsCommand
- Defined in:
- lib/circler/command/builds_command.rb
Class Method Summary collapse
Methods inherited from BaseCommand
build_number, project_name, reponame, setup_token
Class Method Details
.run(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/circler/command/builds_command.rb', line 4 def run() setup_token username, reponame = project_name().split('/') if .branch builds = Build.branch(username, reponame, .branch) else builds = Build.all(username, reponame) end say BuildPrinter.new(builds, compact: ['format'] == 'simple') end |