Class: VagrantPlugins::Skytap::VmProperties

Inherits:
Properties show all
Defined in:
lib/vagrant-skytap/vm_properties.rb

Instance Attribute Summary

Attributes inherited from Properties

#data_dir, #properties

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Properties

#initialize, read, #read, write, #write

Constructor Details

This class inherits a constructor from VagrantPlugins::Skytap::Properties

Class Method Details

.filenameObject



28
29
30
# File 'lib/vagrant-skytap/vm_properties.rb', line 28

def self.filename
  'vm'
end

Instance Method Details

#ssh_infoObject



32
33
34
35
36
37
38
39
40
41
# File 'lib/vagrant-skytap/vm_properties.rb', line 32

def ssh_info
  return {} unless properties

  @ssh_info ||= {
    username: properties['username'],
    password: properties['password'],
    host: properties['host'],
    port: properties['port'],
  }
end