Class: SSHKit::Configuration
- Inherits:
-
Object
- Object
- SSHKit::Configuration
- Defined in:
- lib/sshkit/configuration.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
- #command_map ⇒ Object
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
6 7 8 |
# File 'lib/sshkit/configuration.rb', line 6 def backend @backend end |
#command_map ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sshkit/configuration.rb', line 13 def command_map @command_map ||= begin Hash.new do |hash, command| if %w{if test time}.include? command.to_s hash[command] = command.to_s else hash[command] = "/usr/bin/env #{command}" end end end end |
#output ⇒ Object
Returns the value of attribute output.
6 7 8 |
# File 'lib/sshkit/configuration.rb', line 6 def output @output end |