shelly 0.1.39 → 0.1.40
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/deploy.rb +3 -2
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/deploy_spec.rb +7 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## 0.1.39 / 2013-01-08
|
2
2
|
|
3
|
+
* [improvement] `shelly deploys pending` fetches references from origin before displaying the list of commits.
|
4
|
+
|
5
|
+
## 0.1.39 / 2013-01-08
|
6
|
+
|
3
7
|
* [feature] Added `shelly deploys pending` - displays a list of commits which are not deployed to Shelly Cloud yet.
|
4
8
|
|
5
9
|
## 0.1.38 / 2012-12-20
|
data/lib/shelly/cli/deploy.rb
CHANGED
@@ -60,13 +60,14 @@ module Shelly
|
|
60
60
|
desc "pending", "Show commits which haven't been deployed yet"
|
61
61
|
def pending
|
62
62
|
app = multiple_clouds(options[:cloud], "deploy pending")
|
63
|
+
app.git_fetch_remote
|
63
64
|
if app.deployed?
|
64
65
|
commits = app.pending_commits
|
65
66
|
if commits.present?
|
66
|
-
say "Commits which are not deployed to Shelly"
|
67
|
+
say "Commits which are not deployed to Shelly Cloud"
|
67
68
|
say commits
|
68
69
|
else
|
69
|
-
say "All changes are deployed to Shelly", :green
|
70
|
+
say "All changes are deployed to Shelly Cloud", :green
|
70
71
|
end
|
71
72
|
else
|
72
73
|
say_error "No commits to show. Application hasn't been deployed yet"
|
data/lib/shelly/version.rb
CHANGED
@@ -115,6 +115,12 @@ describe Shelly::CLI::Deploy do
|
|
115
115
|
hooks(@deploys, :pending).should include(:inside_git_repository?)
|
116
116
|
end
|
117
117
|
|
118
|
+
it "should fetch git references from shelly" do
|
119
|
+
@app.should_receive(:git_fetch_remote)
|
120
|
+
@app.stub(:pending_commits => "commit")
|
121
|
+
invoke(@deploys, :pending)
|
122
|
+
end
|
123
|
+
|
118
124
|
context "when application has been deployed" do
|
119
125
|
context "and has pending commits to deploy" do
|
120
126
|
it "should display them" do
|
@@ -127,7 +133,7 @@ describe Shelly::CLI::Deploy do
|
|
127
133
|
|
128
134
|
context "and doesn't have pending commits to deploy" do
|
129
135
|
it "should display a message that everything is deployed" do
|
130
|
-
$stdout.should_receive(:puts).with(green "All changes are deployed to Shelly")
|
136
|
+
$stdout.should_receive(:puts).with(green "All changes are deployed to Shelly Cloud")
|
131
137
|
@app.stub(:pending_commits => "")
|
132
138
|
invoke(@deploys, :pending)
|
133
139
|
end
|
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.1.
|
4
|
+
version: 0.1.40
|
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-01-
|
12
|
+
date: 2013-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -349,7 +349,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: '0'
|
350
350
|
segments:
|
351
351
|
- 0
|
352
|
-
hash: -
|
352
|
+
hash: -2056349295390869621
|
353
353
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
354
354
|
none: false
|
355
355
|
requirements:
|
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
358
|
version: '0'
|
359
359
|
segments:
|
360
360
|
- 0
|
361
|
-
hash: -
|
361
|
+
hash: -2056349295390869621
|
362
362
|
requirements: []
|
363
363
|
rubyforge_project: shelly
|
364
364
|
rubygems_version: 1.8.24
|