Module: Ec2Starter
- Defined in:
- lib/ec2-starter/starter.rb,
lib/ec2-starter/execution.rb
Defined Under Namespace
Classes: Execution, Instance
Class Method Summary
collapse
Class Method Details
.start(ami_id, service_options, run_options, &block) ⇒ Object
2
3
4
5
6
7
8
|
# File 'lib/ec2-starter/starter.rb', line 2
def self.start(ami_id, service_options, run_options, &block)
instance = Instance.new(ami_id, service_options, run_options)
instance.instance_eval(&block)
ec2_starter = Ec2Starter::Execution.new(instance)
ec2_starter.start
return instance
end
|