Class: Fleetctl::Options
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Fleetctl::Options
- Defined in:
- lib/fleetctl/options.rb
Instance Method Summary collapse
- #defaults ⇒ Object
-
#initialize ⇒ Options
constructor
A new instance of Options.
- #ssh_options ⇒ Object
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
3 4 5 6 |
# File 'lib/fleetctl/options.rb', line 3 def initialize(*) deep_merge!(Hashie::Mash.new(defaults)) super end |
Instance Method Details
#defaults ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# 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 ⇒ Object
26 27 28 |
# File 'lib/fleetctl/options.rb', line 26 def self[:ssh_options].symbolize_keys end |