right_chimp 1.1.3 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/*
data/CHANGES CHANGED
@@ -134,3 +134,7 @@ Version 1.1.2
134
134
  Version 1.1.3
135
135
  -------------
136
136
  * Bugfix: Fix issue where queued/held jobs move into a waiting state and do nothing
137
+
138
+ Version 2.0
139
+ -----------
140
+ * Feature: Deprecated all Rightscale API1.0 calls in favor of Rightscale API1.5 and API1.6 calls.
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  # A sample Gemfile
2
2
  source "https://rubygems.org"
3
-
4
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,38 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- right_chimp (1.1.1)
4
+ right_chimp (2.0)
5
5
  nokogiri (~> 1.5.9)
6
6
  progressbar (~> 0.11.0)
7
7
  rake (~> 0.9.2.2)
8
- rest-client (~> 1.6.7)
9
- rest_connection (~> 1.0.10)
10
8
 
11
9
  GEM
12
10
  remote: https://rubygems.org/
13
11
  specs:
14
- activesupport (3.2.15)
15
- i18n (~> 0.6, >= 0.6.4)
16
- multi_json (~> 1.0)
17
12
  diff-lcs (1.1.3)
18
- highline (1.6.20)
19
- i18n (0.6.5)
20
- json (1.8.1)
21
- mime-types (2.0)
22
- multi_json (1.8.2)
23
- net-ssh (2.7.0)
24
- nokogiri (1.5.10)
13
+ nokogiri (1.5.11)
25
14
  progressbar (0.11.0)
26
15
  rake (0.9.2.2)
27
- rest-client (1.6.7)
28
- mime-types (>= 1.16)
29
- rest_connection (1.0.11)
30
- activesupport (< 4.0.0)
31
- highline
32
- json
33
- net-ssh
34
- nokogiri (< 1.6.0)
35
- rest-client
36
16
  rspec (2.6.0)
37
17
  rspec-core (~> 2.6.0)
38
18
  rspec-expectations (~> 2.6.0)
data/README CHANGED
@@ -26,54 +26,32 @@ REPORTING
26
26
  ---------
27
27
 
28
28
  Via the --report command line option it's possible to generate a CSV
29
- report based on a tag query. Multiple fields to include in a report can
30
- be specified in a comma delimited list:
31
-
32
- chimp --report="nickname,ip-address"
33
-
34
- Would include both the server nickname and ip address to the report:
35
-
36
- server1-1.rightscale.com,192.168.0.1
37
- server1-2.rightscale.com,192.168.0.2
38
- server1-3.rightscale.com,192.168.0.3
39
- server1-4.rightscale.com,192.168.0.4
40
-
41
- Any field present on a rest_connection Server object can be queried. This
42
- includes:
43
-
44
- Field Example
45
- ----------------------------------- ----------------------------
46
- aws-id i-12345
47
- aws-platform Linux/Unix
48
- cloud_id
49
- created_at
50
- current_instance_href
51
- deployment_href
52
- dns-name ec2-50-17-195-218.compute-1.amazonaws.com
53
- ec2-availability-zone us-east-1a
54
- ec2-instance-type c1.medium
55
- ec2-security-groups-href
56
- ec2-ssh-key-href
29
+ report. Multiple fields to include in a report can be specified in a comma
30
+ delimited list:
31
+
32
+ chimp --report="nickname,ip-address,tag=myservice:version" --array="MyAppServers"
33
+
34
+ Would include both the server nickname and ip address to the report as well as the specified tag:
35
+
36
+ server1-1.rightscale.com,192.168.0.1,myservice:version=production
37
+ server1-2.rightscale.com,192.168.0.2,myservice:version=production
38
+ server1-3.rightscale.com,192.168.0.3,myservice:version=staging
39
+ server1-4.rightscale.com,192.168.0.4,myservice:version=info
40
+
41
+ Any field present in the following list can be queried:
42
+
43
+ Field
44
+ -----------------------------------
45
+ ip-address
46
+ name
57
47
  href
58
- ip-address 50.17.195.12
59
- locked false
60
- nickname
61
- pricing on_demand
62
- private-dns-name
63
- private-ip-address 10.10.1.1
64
- server_template_href
65
- server_type ec2
66
- state operational
67
- updated_at 2011/10/18 21:53:56 +0000
68
-
69
- Additionally you can report on instance tags:
70
-
71
- chimp --report="nickname,tag=service:myservice"
72
-
73
- server1-1.rightscale.com,service:id=1
74
- server1-2.rightscale.com,service:id=2
75
- server1-3.rightscale.com,service:id=3
76
- server1-4.rightscale.com,service:id=4
48
+ private-ip-address
49
+ resource_uid
50
+ ec2-instance-type
51
+ datacenter
52
+ dns-name
53
+ locked
54
+ tag=mytag
77
55
 
78
56
  OBLIGATORY MAINTENANCE STRING
79
57
  -----------------------------
data/chimp.gemspec CHANGED
@@ -4,9 +4,11 @@ require "right_chimp/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "right_chimp"
7
+ s.license = 'MIT'
8
+
7
9
  s.version = Chimp::VERSION
8
- s.authors = ["Christopher Deutsch"]
9
- s.email = ["christopher@rightscale.com"]
10
+ s.authors = ["RightScale Operations"]
11
+ s.email = ["ops@rightscale.com"]
10
12
  s.homepage = "https://github.com/rightscale/right_chimp"
11
13
  s.summary = %q{RightScale platform command-line tool}
12
14
  s.description = %q{The Chimp is a tool for managing servers using the RightScale platform.}
@@ -18,8 +20,6 @@ Gem::Specification.new do |s|
18
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
21
  s.require_paths = ["lib"]
20
22
 
21
- s.add_dependency "rest_connection", "~> 1.0.10"
22
- s.add_dependency "rest-client", "~> 1.6.7"
23
23
  s.add_dependency "rake", "~> 0.9.2.2"
24
24
  s.add_dependency "nokogiri", "~> 1.5.9"
25
25
  s.add_dependency "progressbar", "~> 0.11.0"