class CircleCI::CLI::Command::BaseCommand
Public Class Methods
branch_name(options)
click to toggle source
# File lib/circleci/cli/command/base_command.rb, line 23 def branch_name(options) if options.all nil else options.branch end end
build_number(options)
click to toggle source
# File lib/circleci/cli/command/base_command.rb, line 31 def build_number(options) options.build || ask('Input build number') end
project_name(options)
click to toggle source
# File lib/circleci/cli/command/base_command.rb, line 14 def project_name(options) if options.project options.project else say Printer::ProjectPrinter.new(Response::Project.all).to_s ask('Input user-name/project-name :') end end
setup_token()
click to toggle source
# File lib/circleci/cli/command/base_command.rb, line 8 def setup_token CircleCi.configure do |config| config.token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :') end end