class Sleet::Cli

Public Class Methods

exit_on_failure?() click to toggle source
# File lib/sleet/cli.rb, line 7
def self.exit_on_failure?
  true
end

Public Instance Methods

config() click to toggle source
# File lib/sleet/cli.rb, line 63
def config
  Sleet::Config.new(cli_hash: options, dir: Dir.pwd).print!
end
fetch() click to toggle source
# File lib/sleet/cli.rb, line 40
def fetch
  sleet_config = Sleet::Config.new(cli_hash: options, dir: Dir.pwd)
  if options[:print_config]
    sleet_config.print!
    exit
  end
  raise Sleet::Error, 'circle_ci_token required and not provided' unless sleet_config.circle_ci_token

  Sleet::FetchCommand.new(sleet_config).do!
end
version() click to toggle source
# File lib/sleet/cli.rb, line 53
def version
  if options[:bare]
    puts Sleet::VERSION
  else
    puts "Sleet v#{Sleet::VERSION}"
  end
end