lib/sshkit/configuration.rb in sshkit-0.0.14 vs lib/sshkit/configuration.rb in sshkit-0.0.15
- old
+ new
@@ -1,10 +1,10 @@
module SSHKit
class Configuration
- attr_accessor :umask
+ attr_accessor :umask, :output_verbosity
attr_writer :output, :backend, :default_env, :command_map
def output
@output ||= format=(:pretty)
end
@@ -13,9 +13,13 @@
@default_env ||= {}
end
def backend
@backend ||= SSHKit::Backend::Netssh
+ end
+
+ def output_verbosity
+ @output_verbosity ||= Logger::INFO
end
def format=(format)
formatter = SSHKit::Formatter.const_get(format.capitalize)
self.output = formatter.new($stdout)