Class: Mccloud::Provider::Vagrant::Vm
- Includes:
- VmCommand
- Defined in:
- lib/mccloud/provider/vagrant/vm.rb
Instance Attribute Summary
Attributes inherited from Core::Vm
#agent_forwarding, #auto_selection, #bootstrap, #bootstrap_password, #bootstrap_user, #create_options, #declared, #definition, #env, #forwardings, #name, #port, #private_key_path, #provider, #provisioners, #public_key_path, #shared_files, #shared_folders, #stacked, #user
Instance Method Summary collapse
-
#initialize(env) ⇒ Vm
constructor
A new instance of Vm.
- #ip_address ⇒ Object
- #private_ip_address ⇒ Object
- #public_ip_address ⇒ Object
- #raw ⇒ Object
Methods included from VmCommand
#_provision, #destroy, #forward, #halt, #reload, #resume, #ssh, #suspend, #up
Methods inherited from Core::Vm
#auto_selected?, #declared?, #forward_port, #method_missing, #provision, #provisioner, #stacked?
Methods included from Core::VmCommand
#adjust_rsync_path, #bg_exec, #execute, #fg_exec, #rsync, #rsync_permissions, #share, #share_file, #share_folder, #share_sync, #ssh, #ssh_bootstrap, #ssh_commandline_options, #ssh_forward, #ssh_tunnel_start, #ssh_tunnel_stop, #sudo, #sudo_string, #windows_client?
Constructor Details
#initialize(env) ⇒ Vm
Returns a new instance of Vm.
22 23 24 |
# File 'lib/mccloud/provider/vagrant/vm.rb', line 22 def initialize(env) @user="vagrant" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mccloud::Provider::Core::Vm
Instance Method Details
#ip_address ⇒ Object
26 27 28 |
# File 'lib/mccloud/provider/vagrant/vm.rb', line 26 def ip_address "127.0.0.1" end |
#private_ip_address ⇒ Object
34 35 36 |
# File 'lib/mccloud/provider/vagrant/vm.rb', line 34 def private_ip_address "127.0.0.1" end |
#public_ip_address ⇒ Object
30 31 32 |
# File 'lib/mccloud/provider/vagrant/vm.rb', line 30 def public_ip_address "127.0.0.1" end |
#raw ⇒ Object
38 39 40 41 42 43 |
# File 'lib/mccloud/provider/vagrant/vm.rb', line 38 def raw if @raw.nil? @raw=@provider.raw.vms[@name.to_sym] end return @raw end |