Method: Jupiter::Host#initialize
- Defined in:
- lib/jupiter/host.rb
#initialize(options) ⇒ Host
Returns a new instance of Host.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jupiter/host.rb', line 6 def initialize() self.name = .fetch(:name) self.vmpath = .fetch(:vmpath) self.host = .fetch(:host) self.sshport = .fetch(:sshport) self.sshuser = .fetch(:sshuser) self.sshpass = .fetch(:sshpass) self.dcname = .fetch(:dcname) self. = Time.new.strftime('%Y-%m-%d-%H%M').freeze end |