Module: SnapDeploy::CLI::DefaultOptions

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/snap_deploy/cli.rb', line 8

def self.included(receiver)
  receiver.send :option, '--verbose', :flag, 'increase verbosity'
  receiver.send :option, '--version', :flag, 'display the version' do
    puts "Snap Deploy v#{SnapDeploy::VERSION}"
    exit(0)
  end
end