Module: AwsInfo
- Defined in:
- lib/aws_info.rb,
lib/aws_info/version.rb,
lib/aws_info/aws_info.rb
Constant Summary collapse
- VERSION =
"0.4.0"
Class Method Summary collapse
- .account_id ⇒ Object
- .architecture ⇒ Object
- .availability_zone ⇒ Object
- .billing_products ⇒ Object
- .dev_pay_product_codes ⇒ Object
- .image_id ⇒ Object
- .info ⇒ Object
- .instance_id ⇒ Object
- .instance_type ⇒ Object
- .ip ⇒ Object
- .kernel_id ⇒ Object
- .pending_time ⇒ Object
- .ram_disk_id ⇒ Object
- .region ⇒ Object
- .tags ⇒ Object
- .version ⇒ Object
Class Method Details
.account_id ⇒ Object
49 50 51 |
# File 'lib/aws_info/aws_info.rb', line 49 def account_id info["accountId"] end |
.architecture ⇒ Object
69 70 71 |
# File 'lib/aws_info/aws_info.rb', line 69 def architecture info["architecture"] end |
.availability_zone ⇒ Object
25 26 27 |
# File 'lib/aws_info/aws_info.rb', line 25 def availability_zone info["availabilityZone"] end |
.billing_products ⇒ Object
45 46 47 |
# File 'lib/aws_info/aws_info.rb', line 45 def billing_products info["billingProducts"] end |
.dev_pay_product_codes ⇒ Object
41 42 43 |
# File 'lib/aws_info/aws_info.rb', line 41 def dev_pay_product_codes info["devpayProductCodes"] end |
.image_id ⇒ Object
57 58 59 |
# File 'lib/aws_info/aws_info.rb', line 57 def image_id info["imageId"] end |
.info ⇒ Object
13 14 15 |
# File 'lib/aws_info/aws_info.rb', line 13 def info @@info ||= end |
.instance_id ⇒ Object
29 30 31 |
# File 'lib/aws_info/aws_info.rb', line 29 def instance_id info["instanceId"] end |
.instance_type ⇒ Object
33 34 35 |
# File 'lib/aws_info/aws_info.rb', line 33 def instance_type info["instanceType"] end |
.ip ⇒ Object
21 22 23 |
# File 'lib/aws_info/aws_info.rb', line 21 def ip info["privateIp"] end |
.kernel_id ⇒ Object
61 62 63 |
# File 'lib/aws_info/aws_info.rb', line 61 def kernel_id info["kernelId"] end |
.pending_time ⇒ Object
53 54 55 |
# File 'lib/aws_info/aws_info.rb', line 53 def pending_time info["pendingTime"] end |
.ram_disk_id ⇒ Object
65 66 67 |
# File 'lib/aws_info/aws_info.rb', line 65 def ram_disk_id info["ramdiskId"] end |
.region ⇒ Object
17 18 19 |
# File 'lib/aws_info/aws_info.rb', line 17 def region info["region"] end |
.tags ⇒ Object
9 10 11 |
# File 'lib/aws_info/aws_info.rb', line 9 def ||= load_tag_data end |
.version ⇒ Object
37 38 39 |
# File 'lib/aws_info/aws_info.rb', line 37 def version info["version"] end |