class Circler::BrowseCommand
Public Class Methods
run(options)
click to toggle source
# File lib/circler/command/browse_command.rb, line 6 def run(options) setup_token project = project_name(options) number = options.build Launchy.open url(project, number) end
url(project, number)
click to toggle source
# File lib/circler/command/browse_command.rb, line 13 def url(project, number) return "https://circleci.com/gh/#{project}" unless number "https://circleci.com/gh/#{project}/#{number}" end