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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30b894476ef574eb618ff58fc7d74788f92b5366
4
- data.tar.gz: e08b213e26d2701562fc84741b66b0807f50962e
3
+ metadata.gz: 6c6f7f70122929233bc0c6b29702d7470c04db77
4
+ data.tar.gz: b5b0933e1439296fa7311c16759b94f2f8fc776f
5
5
  SHA512:
6
- metadata.gz: 9b71a5e57925a199e4b25645af5da46721340ea0af3f53ada9cf0ac42cb5f08a61f1a7562e05fd06459f66b429f08b78309052a71844320fb14516f109eba466
7
- data.tar.gz: da846a1d796168e57f5f4d21d10de8d45b3f05d79746150445448a39aeb13b47810c980dbfe1e9fecc0e57aa803446934281b11b0a354622b3ec094f86de9da6
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 >= 1.9.1 is required.
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
- # :account_id => account(),
79
- # :email => user(),
80
- # :password_base64 => Base64.encode64(ask_pass).strip,
81
- # :api_url => shard(),
82
- # :api_version => api()
83
- #}
84
- #@logger.debug(directives)
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
 
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class RightScaleCLI
18
- VERSION = '0.5.0'
18
+ VERSION = '0.5.1'
19
19
  end
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.0
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.