Class: AMI::Server
- Inherits:
-
Object
- Object
- AMI::Server
- Defined in:
- lib/ami/server.rb
Overview
Stores information about the server required to generate the AMI
Instance Attribute Summary collapse
-
#image_id ⇒ Object
The base AMI to build on top of.
-
#instance_type ⇒ Object
The instance type to use when creating the AMI.
-
#security_groups ⇒ Object
An array of security group names to use for this instance.
-
#user_name ⇒ Object
The user name to use when logging into the instance.
Instance Method Summary collapse
-
#initialize ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize ⇒ Server
Returns a new instance of Server.
17 18 19 20 |
# File 'lib/ami/server.rb', line 17 def initialize @instance_type = 'c1.xlarge' @security_groups = ['default'] end |
Instance Attribute Details
#image_id ⇒ Object
The base AMI to build on top of
6 7 8 |
# File 'lib/ami/server.rb', line 6 def image_id @image_id end |
#instance_type ⇒ Object
The instance type to use when creating the AMI
9 10 11 |
# File 'lib/ami/server.rb', line 9 def instance_type @instance_type end |
#security_groups ⇒ Object
An array of security group names to use for this instance
12 13 14 |
# File 'lib/ami/server.rb', line 12 def security_groups @security_groups end |
#user_name ⇒ Object
The user name to use when logging into the instance
15 16 17 |
# File 'lib/ami/server.rb', line 15 def user_name @user_name end |