Class: Proxy::RemoteExecution::Ssh::Plugin
- Inherits:
-
Plugin
- Object
- Plugin
- Proxy::RemoteExecution::Ssh::Plugin
- Defined in:
- lib/smart_proxy_remote_execution_ssh/plugin.rb
Constant Summary collapse
- SSH_LOG_LEVELS =
%w[debug info warn error fatal].freeze
Class Method Summary collapse
Class Method Details
.runner_class ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/smart_proxy_remote_execution_ssh/plugin.rb', line 39 def self.runner_class @runner_class ||= if simulate? Runners::FakeScriptRunner elsif settings[:async_ssh] Runners::PollingScriptRunner else Runners::ScriptRunner end end |
.simulate? ⇒ Boolean
35 36 37 |
# File 'lib/smart_proxy_remote_execution_ssh/plugin.rb', line 35 def self.simulate? @simulate ||= %w[yes true 1].include? ENV.fetch('REX_SIMULATE', '').downcase end |