Class: AMI::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/ami/server.rb

Overview

Stores information about the server required to generate the AMI

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServer

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_idObject

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_typeObject

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_groupsObject

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_nameObject

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