Class: Wakame::VmManipulator::StandAlone
- Defined in:
- lib/wakame/vm_manipulator.rb
Constant Summary collapse
- INSTANCE_ID =
'__standalone__'
Class Method Summary collapse
Instance Method Summary collapse
- #check_status(instance_id, expected_status = :online) ⇒ Object
- #start_instance(attr) ⇒ Object
- #stop_instance(instance_id) ⇒ Object
Methods inherited from Base
Class Method Details
.fetch_local_attrs ⇒ Object
46 47 48 49 |
# File 'lib/wakame/vm_manipulator.rb', line 46 def self.fetch_local_attrs attrs = {:instance_id=>INSTANCE_ID, :local_ipv4=>'127.0.0.1', :local_hostname=>'localhost', :ami_id=>'localimage'} attrs end |
Instance Method Details
#check_status(instance_id, expected_status = :online) ⇒ Object
41 42 43 44 |
# File 'lib/wakame/vm_manipulator.rb', line 41 def check_status(instance_id, expected_status=:online) # Always running expected_status == :online end |
#start_instance(attr) ⇒ Object
32 33 34 35 |
# File 'lib/wakame/vm_manipulator.rb', line 32 def start_instance(attr) # Nothing to be done {:instance_id =>INSTANCE_ID} end |
#stop_instance(instance_id) ⇒ Object
37 38 39 |
# File 'lib/wakame/vm_manipulator.rb', line 37 def stop_instance(instance_id) # Nothing to be done end |