shelly 0.3.3 → 0.3.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.4 / 2013-07-02
2
+
3
+ * [improvement] consistent output for `shelly start`, `shelly stop` and deployment progress
4
+
1
5
  ## 0.3.3 / 2013-06-28
2
6
 
3
7
  * [feature] user is able to access MongoDB console
@@ -196,6 +196,7 @@ module Shelly
196
196
  app = multiple_clouds(options[:cloud], "start")
197
197
  deployment_id = app.start
198
198
  say "Starting cloud #{app}.", :green
199
+ say_new_line
199
200
  deployment_progress(app, deployment_id, "Starting cloud")
200
201
  rescue Client::ConflictException => e
201
202
  case e[:state]
@@ -151,7 +151,7 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository}
151
151
  new_messages = @deployment["messages"] - printed_messages
152
152
  new_messages.each do |message|
153
153
  color = (message =~ /failed/) ? :red : :green
154
- say message, color
154
+ say " ---> #{message}", color
155
155
  printed_messages << message
156
156
  end
157
157
 
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -678,7 +678,7 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
678
678
  context "single cloud in Cloudfile" do
679
679
  it "should start the cloud" do
680
680
  $stdout.should_receive(:puts).with(green "Starting cloud foo-production.")
681
- $stdout.should_receive(:puts).with(green "message1")
681
+ $stdout.should_receive(:puts).with(green " ---> message1")
682
682
  $stdout.should_receive(:puts).with(green "Starting cloud successful")
683
683
  invoke(@main, :start)
684
684
  end
@@ -727,7 +727,7 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
727
727
  @client.should_receive(:deployment).
728
728
  with("foo-staging", "DEPLOYMENT_ID").and_return(@deployment)
729
729
  $stdout.should_receive(:puts).with(green "Starting cloud foo-staging.")
730
- $stdout.should_receive(:puts).with(green "message1")
730
+ $stdout.should_receive(:puts).with(green " ---> message1")
731
731
  $stdout.should_receive(:puts).with(green "Starting cloud successful")
732
732
  @main.options = {:cloud => "foo-staging"}
733
733
  invoke(@main, :start)
@@ -835,7 +835,7 @@ Wait until cloud is in 'turned off' state and try again.")
835
835
  it "should stop the cloud" do
836
836
  $stdout.should_receive(:print).with("Are you sure you want to shut down 'foo-production' cloud (yes/no): ")
837
837
  $stdout.should_receive(:puts).with("\n")
838
- $stdout.should_receive(:puts).with(green "message1")
838
+ $stdout.should_receive(:puts).with(green " ---> message1")
839
839
  $stdout.should_receive(:puts).with(green "Stopping cloud successful")
840
840
  fake_stdin(["yes"]) do
841
841
  invoke(@main, :stop)
@@ -848,7 +848,7 @@ Wait until cloud is in 'turned off' state and try again.")
848
848
  @app.stub(:deployment => {"messages" => ["message1"],
849
849
  "result" => "failure", "state" => "deploy_failed"})
850
850
 
851
- $stdout.should_receive(:puts).with(green "message1")
851
+ $stdout.should_receive(:puts).with(green " ---> message1")
852
852
  $stdout.should_receive(:puts).
853
853
  with(red "Stopping cloud failed. See logs with `shelly deploy show last --cloud foo-production`")
854
854
  fake_stdin(["yes"]) do
@@ -1280,7 +1280,7 @@ Wait until cloud is in 'turned off' state and try again.")
1280
1280
  end
1281
1281
 
1282
1282
  it "should print deployment messages" do
1283
- $stdout.should_receive(:puts).with(green "message1")
1283
+ $stdout.should_receive(:puts).with(green " ---> message1")
1284
1284
  $stdout.should_receive(:puts).with(green "Cloud redeploy successful")
1285
1285
  invoke(@main, :redeploy)
1286
1286
  end
@@ -1290,7 +1290,7 @@ Wait until cloud is in 'turned off' state and try again.")
1290
1290
  it "should display error and `shelly deploy show last --cloud foo-production` command" do
1291
1291
  @app.stub(:deployment => {"messages" => ["message1"],
1292
1292
  "result" => "failure", "state" => "deploy_failed"})
1293
- $stdout.should_receive(:puts).with(green "message1")
1293
+ $stdout.should_receive(:puts).with(green " ---> message1")
1294
1294
  $stdout.should_receive(:puts).
1295
1295
  with(red "Cloud redeploy failed. See logs with `shelly deploy show last --cloud foo-production`")
1296
1296
  invoke(@main, :redeploy)
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.3.3
4
+ version: 0.3.4
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-06-28 00:00:00.000000000 Z
12
+ date: 2013-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -317,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
317
  version: '0'
318
318
  segments:
319
319
  - 0
320
- hash: -2831045740089132690
320
+ hash: 3404836754866729086
321
321
  required_rubygems_version: !ruby/object:Gem::Requirement
322
322
  none: false
323
323
  requirements:
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  segments:
328
328
  - 0
329
- hash: -2831045740089132690
329
+ hash: 3404836754866729086
330
330
  requirements: []
331
331
  rubyforge_project: shelly
332
332
  rubygems_version: 1.8.25