Method: Circler::BuildsCommand.run

Defined in:
lib/circler/command/builds_command.rb

.run(options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/circler/command/builds_command.rb', line 6

def run(options)
  setup_token
  username, reponame = project_name(options).split('/')

  builds =
    if options.branch
      Build.branch(username, reponame, options.branch)
    else
      Build.all(username, reponame)
    end

  say BuildPrinter.new(builds, pretty: should_be_pretty(options)).to_s
end