class Safedep::CLI

Public Class Methods

run(args = ARGV) click to toggle source
# File lib/safedep/cli.rb, line 6
def self.run(args = ARGV)
  new.run(args)
end

Public Instance Methods

option_parser() click to toggle source
# File lib/safedep/cli.rb, line 24
def option_parser
  @option_parser ||= OptionParser.new
end
run(args) click to toggle source
# File lib/safedep/cli.rb, line 10
def run(args)
  option_parser.parse(args)

  runner = Runner.new(option_parser.configuration)
  runner.run

  puts 'Done.'

  true
rescue Safedep::Error => error
  warn error.message
  false
end