rightscale-cli 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +27 -4
- data/lib/rightscale_cli/deployments.rb +5 -8
- data/lib/rightscale_cli/tags.rb +0 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b57966cd4128f7803b0c6307384b75150be9de7
|
4
|
+
data.tar.gz: 46842aa6fa84ff9696e6cde6989173c7dd8a3297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b7b87f5cb087f131188d9e845d3643cbb00c822513c7285eb0454ccb63628eeaecc4b25c2ff3e152810a89b1c3956c6198e743dd2b7da1ced6286ec5964d4a
|
7
|
+
data.tar.gz: 00657d512c4ce386b381b10c78b50079717d687ae45f544449f86e837dd04f2cab4f9d775cb4dfe51b104f4e54bcb3c537619a96a5369c2cd06faa19e7f98b4b
|
data/README.md
CHANGED
@@ -3,17 +3,40 @@
|
|
3
3
|
[](http://badge.fury.io/rb/rightscale-cli)
|
4
4
|
|
5
5
|
RightScale CLI client. Currently in early development stages.
|
6
|
+
For more information, see https://rubygems.org/gems/rightscale-cli.
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
9
|
-
Ruby
|
10
|
-
|
11
|
-
Install the latest RubyGem from RubyGems.org:
|
10
|
+
Ruby >= 1.9.3 is required. Using rbenv or RVM is recommended, or install the gem from RubyGems.org:
|
12
11
|
|
13
12
|
$ gem install rightscale-cli
|
14
13
|
|
15
|
-
|
14
|
+
### Debian/Ubuntu
|
15
|
+
|
16
|
+
If you are installing on a Debian or Ubuntu release that currently has Ruby 1.8 installed, upgrade by taking the following steps.
|
17
|
+
|
18
|
+
Remove Ruby 1.8:
|
19
|
+
|
20
|
+
# apt-get remove --purge libruby1.8 ruby ruby1.8
|
21
|
+
|
22
|
+
Install Ruby 1.9.3:
|
23
|
+
|
24
|
+
# apt-get install ruby1.9.3 rubygems1.9.1
|
25
|
+
|
26
|
+
Then, install the gem:
|
27
|
+
|
28
|
+
# gem install rightscale-cli
|
29
|
+
|
30
|
+
Re-install RightLink if on a RightScale server (removing ruby removes it), for example on EC2:
|
31
|
+
|
32
|
+
# apt-get install rightlink rightlink-cloud-ec2
|
33
|
+
# service rightscale start
|
34
|
+
# service rightlink start
|
35
|
+
|
36
|
+
Ensure system uses ruby1.9:
|
16
37
|
|
38
|
+
# update-alternatives --set ruby /usr/bin/ruby1.9.1
|
39
|
+
|
17
40
|
### Mac OS X, FreeBSD
|
18
41
|
|
19
42
|
The executable, `rs` will conflict with `RS(1)` on Mac OS X (http://www.freebsd.org/cgi/man.cgi?query=rs&sektion=1&apropos=0&manpath=freebsd).
|
@@ -54,16 +54,13 @@ class RightScaleCLI
|
|
54
54
|
end
|
55
55
|
|
56
56
|
desc "terminate", "Terminates all servers in a deployment."
|
57
|
-
def terminate(
|
58
|
-
@client.
|
59
|
-
unless server
|
57
|
+
def terminate(deployment_id)
|
58
|
+
@client.client.deployments.index(:id=> deployment_id).show.servers.index.each do |server|
|
59
|
+
unless server.state == 'inactive'
|
60
|
+
@logger.info "Terminating #{server.href} (state: #{server.state}.)"
|
60
61
|
server.terminate
|
61
|
-
#current_instance = server['links'].select { |link| link['rel'] == 'current_instance' }.first['href']
|
62
|
-
#cloud = current_instance.split('/')[3]
|
63
|
-
#instance_id = current_instance.split('/').last
|
64
|
-
#@client.client.clouds(:id => cloud).show.instances(:id => instance_id).terminate
|
65
62
|
end
|
66
|
-
|
63
|
+
end
|
67
64
|
end
|
68
65
|
|
69
66
|
def self.banner(task, namespace = true, subcommand = false)
|
data/lib/rightscale_cli/tags.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightscale-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Fordham
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: builder
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: json
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|