shelly 0.0.48.pre3 → 0.0.48.pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shelly/cli/main.rb +3 -2
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +3 -3
- metadata +3 -3
data/lib/shelly/cli/main.rb
CHANGED
@@ -166,8 +166,9 @@ module Shelly
|
|
166
166
|
when "not_enough_resources"
|
167
167
|
say_error "Sorry, There are no resources for your servers. We have been notified about it. We will be adding new resources shortly"
|
168
168
|
when "no_billing"
|
169
|
-
|
170
|
-
|
169
|
+
url = "#{@app.shelly.shellyapp_url}/apps/#{@app.code_name}/edit_billing"
|
170
|
+
say_error "Please fill in billing details to start foo-production.", :with_exit => false
|
171
|
+
say_error "Visit: #{url}", :with_exit => false
|
171
172
|
end
|
172
173
|
exit 1
|
173
174
|
rescue Client::NotFoundException => e
|
data/lib/shelly/version.rb
CHANGED
@@ -611,10 +611,10 @@ OUT
|
|
611
611
|
lambda { invoke(@main, :start) }.should raise_error(SystemExit)
|
612
612
|
end
|
613
613
|
|
614
|
-
it "should
|
614
|
+
it "should show messages about billing" do
|
615
615
|
raise_conflict("state" => "no_billing")
|
616
|
-
$stdout.should_receive(:puts).with(red "Please fill in billing details to start foo-production.
|
617
|
-
@
|
616
|
+
$stdout.should_receive(:puts).with(red "Please fill in billing details to start foo-production.")
|
617
|
+
@client.stub(:shellyapp_url).and_return("http://example.com")
|
618
618
|
lambda { invoke(@main, :start) }.should raise_error(SystemExit)
|
619
619
|
end
|
620
620
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1923832097
|
5
5
|
prerelease: 7
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 48
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.0.48.
|
11
|
+
- 4
|
12
|
+
version: 0.0.48.pre4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Shelly Cloud team
|