lib/sshkit/configuration.rb in sshkit-1.11.5 vs lib/sshkit/configuration.rb in sshkit-1.12.0
- old
+ new
@@ -27,9 +27,19 @@
def default_runner
@default_runner ||= :parallel
end
+ def default_runner_config
+ @default_runner_config ||= { in: default_runner }
+ end
+
+ def default_runner_config=(config_hash)
+ config = config_hash.dup
+ SSHKit.config.default_runner = config.delete(:in) if config[:in]
+ @default_runner_config = config.merge(in: SSHKit.config.default_runner)
+ end
+
def backend
@backend ||= SSHKit::Backend::Netssh
end
def output_verbosity