class S3sec::CLI

Handle the application command line parsing and the dispatch to various command objects

@api public

Constants

Error

Error raised by this runner

Public Instance Methods

check(*) click to toggle source
# File lib/s3sec/cli.rb, line 24
def check(*)
  if options[:help]
    invoke :help, ['check']
  else
    require_relative 'commands/check'
    S3sec::Commands::Check.new(options).execute
  end
end
config(*) click to toggle source
# File lib/s3sec/cli.rb, line 36
def config(*)
  if options[:help]
    invoke :help, ['config']
  else
    require_relative 'commands/config'
    S3sec::Commands::Config.new(options).execute
  end
end
version() click to toggle source
# File lib/s3sec/cli.rb, line 15
def version
  require_relative 'version'
  puts "v#{S3sec::VERSION}"
end