Class: Rivet::Ec2Config
- Inherits:
-
BaseConfig
- Object
- OpenState
- BaseConfig
- Rivet::Ec2Config
- Defined in:
- lib/rivet/ec2/ec2_config.rb
Instance Attribute Summary
Attributes inherited from BaseConfig
Attributes inherited from OpenState
#generated_attributes, #required_fields
Instance Method Summary collapse
-
#initialize(name, load_path = '.', &block) ⇒ Ec2Config
constructor
A new instance of Ec2Config.
- #normalize_availability_zone ⇒ Object
Methods inherited from BaseConfig
from_file, #normalize_security_groups, #path
Methods inherited from OpenState
#install_get_or_set, #method_missing, #validate
Constructor Details
#initialize(name, load_path = '.', &block) ⇒ Ec2Config
Returns a new instance of Ec2Config.
6 7 8 9 10 11 12 13 |
# File 'lib/rivet/ec2/ec2_config.rb', line 6 def initialize(name, load_path='.', &block) @required_fields = { :image_id => nil, :region => 'us-east-1', :availability_zone => 'a' } super(name,load_path, &block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rivet::OpenState
Instance Method Details
#normalize_availability_zone ⇒ Object
15 16 17 |
# File 'lib/rivet/ec2/ec2_config.rb', line 15 def normalize_availability_zone region + availability_zone end |