Class: Host::EC2

Inherits:
Default show all
Defined in:
lib/host/e_c_2.rb

Instance Attribute Summary collapse

Attributes inherited from Default

#host_name, #ssh_pem, #tags, #user

Instance Method Summary collapse

Methods inherited from Default

#matches?, #shell!, #shell_exec!, #type

Constructor Details

#initialize(host = 'unspecified', info = {}, opts = {}) ⇒ EC2

Returns a new instance of EC2.



6
7
8
9
# File 'lib/host/e_c_2.rb', line 6

def initialize( host = 'unspecified', info = {}, opts = {} )
  super 
  @type = info[ "Type" ] || :ec2
end

Instance Attribute Details

#aliasObject (readonly)

Returns the value of attribute alias.



4
5
6
# File 'lib/host/e_c_2.rb', line 4

def alias
  @alias
end