Method: VScripts::AWS::EC2#instance

Defined in:
lib/vscripts/aws/ec2.rb

#instanceAWS::EC2::Instance

Returns the current instance.

Returns:

  • (AWS::EC2::Instance)

    the current instance



16
17
18
19
# File 'lib/vscripts/aws/ec2.rb', line 16

def instance
  check_instance
  ec2.instances[instance_id]
end