Module: VagrantPlugins::Azure::Util::MachineIdHelper
- Included in:
- Action::ReadSSHInfo, Action::ReadState, Action::ReadWinrmInfo, Action::RestartVM, Action::RunInstance, Action::StartInstance, Action::StopInstance, Action::TerminateInstance
- Defined in:
- lib/vagrant-azure/util/machine_id_helper.rb
Instance Method Summary collapse
Instance Method Details
#parse_machine_id(id) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant-azure/util/machine_id_helper.rb', line 9 def parse_machine_id(id) parts = id.split(':') { group: parts[0], name: parts[1], location: parts[2] } end |
#serialize_machine_id(resource_group, vm_name, location) ⇒ Object
18 19 20 |
# File 'lib/vagrant-azure/util/machine_id_helper.rb', line 18 def serialize_machine_id(resource_group, vm_name, location) [resource_group, vm_name, location].join(':') end |