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



6
7
8
# File 'lib/vagrant-skytap/vm_properties.rb', line 6

def self.filename
  'vm'
end

Instance Method Details

#ssh_infoObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/vagrant-skytap/vm_properties.rb', line 10

def ssh_info
  return {} unless properties

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