Sha256: 8d1f42689fbe6b574b1e016a1eff1016bb2e9db3ccc08b2a16d67781a5333295
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Percheron module CLI class AbstractCommand < Clamp::Command option [ '-c', '--config_file' ], 'CONFIG', 'Configuration file', default: '.percheron.yml' option '--version', :flag, 'show version' do puts Percheron::VERSION exit(0) end def config @config ||= Percheron::Config.new(config_file) rescue Errors::ConfigFileInvalid => e $logger.error "An error has occurred while reading your config file - #{e.message}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
percheron-0.2.2 | lib/percheron/cli/abstract_command.rb |
percheron-0.2.1 | lib/percheron/cli/abstract_command.rb |
percheron-0.2.0 | lib/percheron/cli/abstract_command.rb |