Class: Host::EC2
Instance Attribute Summary collapse
-
#alias ⇒ Object
readonly
Returns the value of attribute alias.
Attributes inherited from Default
#host_name, #ssh_pem, #tags, #user
Instance Method Summary collapse
-
#initialize(host = 'unspecified', info = {}, opts = {}) ⇒ EC2
constructor
A new instance of EC2.
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
#alias ⇒ Object (readonly)
Returns the value of attribute alias.
4 5 6 |
# File 'lib/host/e_c_2.rb', line 4 def alias @alias end |