class Fleetctl::Options

Public Class Methods

new(*) click to toggle source
Calls superclass method
# File lib/fleetctl/options.rb, line 3
def initialize(*)
  deep_merge!(Hashie::Mash.new(defaults))
  super
end

Public Instance Methods

defaults() click to toggle source
# File lib/fleetctl/options.rb, line 8
def defaults
  {
    global: {},
    executable: 'fleetctl',
    logger: Logger.new(STDOUT),
    runner_class: 'SSH',
    command_prefix: nil,
    discovery_url: nil,
    
    # for use with runner_class: 'SSH'
    # these aren't used wih a Shell runner
    fleet_host: nil,
    fleet_user: 'core',
    ssh_options: {},
    remote_temp_dir: '/tmp'
  }
end
ssh_options() click to toggle source
# File lib/fleetctl/options.rb, line 26
def ssh_options
  self[:ssh_options].symbolize_keys
end