Class: Cute::OARSSHopts
- Inherits:
-
Hash
- Object
- Hash
- Cute::OARSSHopts
- Defined in:
- lib/cute/extensions.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ OARSSHopts
constructor
A new instance of OARSSHopts.
Constructor Details
#initialize(opts = {}) ⇒ OARSSHopts
Returns a new instance of OARSSHopts.
44 45 46 47 48 49 |
# File 'lib/cute/extensions.rb', line 44 def initialize(opts={}) super raise "The argument must be a Hash" unless opts.is_a?(Hash) self.merge!({:user => "oar", :keys => ["~/my_ssh_jobkey"], :port => 6667 }) self.merge!(opts) end |