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(options)
  self.name       = options.fetch(:name)
  self.vmpath     = options.fetch(:vmpath)
  self.host       = options.fetch(:host)
  self.sshport    = options.fetch(:sshport)
  self.sshuser    = options.fetch(:sshuser)
  self.sshpass    = options.fetch(:sshpass)
  self.dcname     = options.fetch(:dcname)
  self.timestamp  = Time.new.strftime('%Y-%m-%d-%H%M').freeze
end