shelly 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/shelly/cli/main.rb +5 -1
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +10 -0
- metadata +59 -6
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.2.10 / 2013-03-18
|
2
|
+
|
3
|
+
* [feature] Added default organization option to `shelly add` which creates organization with the same name as cloud's code name
|
4
|
+
|
1
5
|
## 0.2.9 / 2013-03-14
|
2
6
|
|
3
7
|
* [feature] Added force option (skip confirmation question) for `shelly file delete`
|
data/lib/shelly/cli/main.rb
CHANGED
@@ -85,6 +85,8 @@ module Shelly
|
|
85
85
|
:desc => "Add cloud to existing organization"
|
86
86
|
method_option "skip-requirements-check", :type => :boolean,
|
87
87
|
:desc => "Skip Shelly Cloud requirements check"
|
88
|
+
method_option "default-organization", :type => :boolean,
|
89
|
+
:desc => "Create cloud with default organization"
|
88
90
|
method_option "zone", :type => :boolean, :hide => true,
|
89
91
|
:desc => "Create cloud in given zone"
|
90
92
|
desc "add", "Add a new cloud"
|
@@ -98,7 +100,9 @@ module Shelly
|
|
98
100
|
app.databases = options["databases"] || ask_for_databases
|
99
101
|
app.size = options["size"] || "large"
|
100
102
|
app.redeem_code = options["redeem-code"]
|
101
|
-
|
103
|
+
unless options["default-organization"]
|
104
|
+
app.organization = options["organization"] || ask_for_organization(app.code_name)
|
105
|
+
end
|
102
106
|
app.zone_name = options["zone"]
|
103
107
|
app.create
|
104
108
|
|
data/lib/shelly/version.rb
CHANGED
@@ -605,6 +605,16 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
|
|
605
605
|
end
|
606
606
|
end
|
607
607
|
|
608
|
+
context "default-organizaation" do
|
609
|
+
it "should not ask for organization" do
|
610
|
+
@main.options = {"default-organization" => true}
|
611
|
+
@app.should_not_receive(:organization=)
|
612
|
+
fake_stdin(["foooo", "none"]) do
|
613
|
+
invoke(@main, :add)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
608
618
|
it "should show that organization was not found" do
|
609
619
|
@main.options = {"organization" => "foo"}
|
610
620
|
response = {"resource" => "organization"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -91,6 +91,38 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: ruby_gntp
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rb-fsevent
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
94
126
|
- !ruby/object:Gem::Dependency
|
95
127
|
name: fakefs
|
96
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
317
|
version: '0'
|
286
318
|
segments:
|
287
319
|
- 0
|
288
|
-
hash: -
|
320
|
+
hash: -3332234894998950959
|
289
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
290
322
|
none: false
|
291
323
|
requirements:
|
@@ -294,11 +326,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
326
|
version: '0'
|
295
327
|
segments:
|
296
328
|
- 0
|
297
|
-
hash: -
|
329
|
+
hash: -3332234894998950959
|
298
330
|
requirements: []
|
299
331
|
rubyforge_project: shelly
|
300
|
-
rubygems_version: 1.8.
|
332
|
+
rubygems_version: 1.8.25
|
301
333
|
signing_key:
|
302
334
|
specification_version: 3
|
303
335
|
summary: Shelly Cloud command line tool
|
304
|
-
test_files:
|
336
|
+
test_files:
|
337
|
+
- spec/helpers.rb
|
338
|
+
- spec/input_faker.rb
|
339
|
+
- spec/shelly/app_spec.rb
|
340
|
+
- spec/shelly/backup_spec.rb
|
341
|
+
- spec/shelly/cli/backup_spec.rb
|
342
|
+
- spec/shelly/cli/config_spec.rb
|
343
|
+
- spec/shelly/cli/deploy_spec.rb
|
344
|
+
- spec/shelly/cli/file_spec.rb
|
345
|
+
- spec/shelly/cli/main_spec.rb
|
346
|
+
- spec/shelly/cli/organization_spec.rb
|
347
|
+
- spec/shelly/cli/runner_spec.rb
|
348
|
+
- spec/shelly/cli/user_spec.rb
|
349
|
+
- spec/shelly/client_spec.rb
|
350
|
+
- spec/shelly/cloudfile_spec.rb
|
351
|
+
- spec/shelly/download_progress_bar_spec.rb
|
352
|
+
- spec/shelly/model_spec.rb
|
353
|
+
- spec/shelly/organization_spec.rb
|
354
|
+
- spec/shelly/structure_validator_spec.rb
|
355
|
+
- spec/shelly/user_spec.rb
|
356
|
+
- spec/spec_helper.rb
|
357
|
+
- spec/thor/options_spec.rb
|