rightscale-cli 0.5.0 → 0.5.1
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 +8 -2
- data/lib/rightscale_cli/configure.rb +14 -13
- data/lib/rightscale_cli/version.rb +1 -1
- metadata +22 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c6f7f70122929233bc0c6b29702d7470c04db77
|
4
|
+
data.tar.gz: b5b0933e1439296fa7311c16759b94f2f8fc776f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 929263bde33ae1761a442a87c09072aa968eeb4d79cf24fc03b3c0bd446d49b2ebc3f21e13076b17fbe204c7135435c8b1df542304636907c73d19728ecd7b4c
|
7
|
+
data.tar.gz: 6a0620baf07cc004ea5d4cefcdb663729968c35f193c0862c7f4442f9a43edfde8a44ae9635ba55f3667fd78685f1254ca8e08c667dbfd52bc61c3d6bf6bc972
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ RightScale CLI client. Currently in early development stages.
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
Ruby
|
9
|
+
Ruby `>= 1.9.1` is required.
|
10
10
|
|
11
11
|
Install the latest RubyGem from RubyGems.org:
|
12
12
|
|
@@ -16,7 +16,7 @@ For more information, see https://rubygems.org/gems/rightscale-cli.
|
|
16
16
|
|
17
17
|
### Mac OS X, FreeBSD
|
18
18
|
|
19
|
-
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).
|
19
|
+
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).
|
20
20
|
|
21
21
|
As a result, to avoid overwriting the `/usr/bin/rs` binary, use a different location in your `~/.gemrc` or `/etc/gemrc`, for example:
|
22
22
|
|
@@ -40,6 +40,12 @@ There is one command, `rs`.
|
|
40
40
|
* For a list of subcommands, type `rs <namespace> help`, e.g. `rs arrays help`
|
41
41
|
* For usage options of a subcommand, type `rs <namespace> help <subcommand>`, e.g. `rs arrays help instances`
|
42
42
|
|
43
|
+
### Examples
|
44
|
+
|
45
|
+
List all clouds within your account:
|
46
|
+
|
47
|
+
$ rs clouds list
|
48
|
+
|
43
49
|
## License and Authors
|
44
50
|
|
45
51
|
* Author:: Chris Fordham <chris [at] fordham [hyphon] nagy [dot] id [dot] au>
|
@@ -38,6 +38,7 @@ class RightScaleCLI
|
|
38
38
|
no_commands{
|
39
39
|
def update_conf(directives)
|
40
40
|
renderer = ERB.new(IO.read(@template_path))
|
41
|
+
Dir.mkdir(File.dirname(@config.path)) unless File.exists?(File.dirname(@config.path))
|
41
42
|
File.open(@config.path, 'w') {|f| f.write(renderer.result(binding)) }
|
42
43
|
end
|
43
44
|
}
|
@@ -74,21 +75,21 @@ class RightScaleCLI
|
|
74
75
|
|
75
76
|
desc "all", "Configure RightScale CLI."
|
76
77
|
def all()
|
77
|
-
#directives = {
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#}
|
84
|
-
|
78
|
+
# directives = {
|
79
|
+
# :account_id => account(),
|
80
|
+
# :email => user(),
|
81
|
+
# :password_base64 => Base64.encode64(ask_pass).strip,
|
82
|
+
# :api_url => shard(),
|
83
|
+
# :api_version => api()
|
84
|
+
# }
|
85
|
+
# @logger.debug(directives)
|
85
86
|
|
86
87
|
# currently this is the lazy way, each is written sequentially
|
87
|
-
account
|
88
|
-
user
|
89
|
-
password
|
90
|
-
shard
|
91
|
-
api
|
88
|
+
account
|
89
|
+
user
|
90
|
+
password
|
91
|
+
shard
|
92
|
+
api
|
92
93
|
puts 'Configuration saved.'
|
93
94
|
end
|
94
95
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Fordham
|
@@ -11,17 +11,17 @@ cert_chain: []
|
|
11
11
|
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
14
|
+
name: activesupport~> 4.0
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.4.4
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,60 +41,63 @@ dependencies:
|
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: 1.4.4
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: right_api_client
|
48
|
+
name: right_api_client~> 1.5
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - "
|
58
|
+
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: octokit
|
62
|
+
name: octokit~> 2.7
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: '0'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: thor
|
76
|
+
name: thor~> 0.18
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '0'
|
76
82
|
type: :runtime
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - "
|
86
|
+
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: nokogiri
|
90
|
+
name: nokogiri~> 1.6
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- - "
|
93
|
+
- - "~>"
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '0'
|
90
96
|
type: :runtime
|
91
97
|
prerelease: false
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- - "
|
100
|
+
- - "~>"
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0'
|
97
103
|
description: RightScale command line interface client.
|