Class: Bolt::Config::Transport::Choria
- Defined in:
- lib/bolt/config/transport/choria.rb
Constant Summary collapse
- OPTIONS =
%w[ cleanup collective command-timeout config-file host interpreters mcollective-certname broker-timeout brokers puppet-environment rpc-timeout ssl-ca ssl-cert ssl-key task-agent task-timeout tmpdir ].sort.freeze
- DEFAULTS =
{ 'cleanup' => true, 'command-timeout' => 60, 'broker-timeout' => 30, 'puppet-environment' => 'production', 'rpc-timeout' => 30, 'task-timeout' => 300, 'tmpdir' => '/tmp' }.freeze
- VALID_AGENTS =
%w[bolt_tasks shell].freeze
Constants included from Options
Options::LOGIN_SHELLS, Options::RUN_AS_OPTIONS, Options::TRANSPORT_OPTIONS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#absolute_path?(path) ⇒ Boolean
Accept both POSIX absolute paths (/tmp) and Windows absolute paths (C:temp).
Methods inherited from Base
#[], #dig, #fetch, #include?, #initialize, #merge, options, #resolve, #resolved?, schema, #to_h
Constructor Details
This class inherits a constructor from Bolt::Config::Transport::Base
Instance Method Details
#absolute_path?(path) ⇒ Boolean
Accept both POSIX absolute paths (/tmp) and Windows absolute paths (C:temp).
68 69 70 |
# File 'lib/bolt/config/transport/choria.rb', line 68 def absolute_path?(path) path.start_with?('/') || path.match?(Bolt::Transport::Choria::WINDOWS_PATH_REGEX) end |