ilookup 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/ilookup +8 -3
  3. data/lib/ilookup/version.rb +1 -1
  4. metadata +14 -28
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c094d0c77fc965adb21bb85e89ff6bd25378d5e3
4
+ data.tar.gz: 8a86df8b8a4cf687717f2e05d24b764dcba86a8b
5
+ SHA512:
6
+ metadata.gz: 18cd9f4f9b0df3756f6c6c1499a978d7448efda478cd7829615f4cfb8cfae895754fdb7050ee10dcfc3b97d0d3ac7387a2c27a6ec344647268cf7b6a4731322e
7
+ data.tar.gz: 97c9e4f2b763afc79786b1e50ebee2b451a80b06c4f0b44101eef7cf430482dfbfe017ede3427974ae1b2cf9cd2703b86c3b16a41b0eb353a0b645bf9fb0984d
@@ -8,6 +8,11 @@ end
8
8
 
9
9
  fog = Fog::Compute.new(provider: 'AWS')
10
10
  instance = fog.servers.get(ARGV[0])
11
- puts "Public IP:\t #{instance.public_ip_address}"
12
- puts "Private IP:\t #{instance.private_ip_address}"
13
- puts "Tags:\t #{instance.tags}"
11
+
12
+ if instance.nil?
13
+ puts "Instance not found"
14
+ else
15
+ puts "Public IP:\t #{instance.respond_to?(:public_ip_address) ? instance.public_ip_address : "n/a"}" if
16
+ puts "Private IP:\t #{instance.private_ip_address}"
17
+ puts "Tags:\t #{instance.tags}"
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Ilookup
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ilookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Dyer
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-23 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fog
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Look up ip's and tags from instance ID
@@ -67,7 +60,7 @@ executables:
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - .gitignore
63
+ - ".gitignore"
71
64
  - Gemfile
72
65
  - LICENSE.txt
73
66
  - README.md
@@ -79,33 +72,26 @@ files:
79
72
  homepage: https://github.com/johntdyer/ilookup
80
73
  licenses:
81
74
  - MIT
75
+ metadata: {}
82
76
  post_install_message:
83
77
  rdoc_options: []
84
78
  require_paths:
85
79
  - lib
86
80
  - bin
87
81
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
82
  requirements:
90
- - - ! '>='
83
+ - - ">="
91
84
  - !ruby/object:Gem::Version
92
85
  version: '0'
93
- segments:
94
- - 0
95
- hash: 4473750408349401654
96
86
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
87
  requirements:
99
- - - ! '>='
88
+ - - ">="
100
89
  - !ruby/object:Gem::Version
101
90
  version: '0'
102
- segments:
103
- - 0
104
- hash: 4473750408349401654
105
91
  requirements: []
106
92
  rubyforge_project:
107
- rubygems_version: 1.8.23
93
+ rubygems_version: 2.2.2
108
94
  signing_key:
109
- specification_version: 3
95
+ specification_version: 4
110
96
  summary: Look up ip's and tags from instance ID
111
97
  test_files: []