capistrano-mountaintop 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -4
- data/Gemfile.lock +46 -24
- data/Rakefile +1 -1
- data/capistrano-mountaintop.gemspec +15 -16
- data/lib/capistrano/mountaintop.rb +7 -1
- data/spec/capistrano-mountaintop_spec.rb +12 -0
- metadata +17 -21
- data/.gitignore +0 -42
data/Gemfile
CHANGED
@@ -2,12 +2,12 @@ source :gemcutter
|
|
2
2
|
|
3
3
|
gem "capistrano"
|
4
4
|
gem "capistrano-campfire"
|
5
|
-
gem "capistrano-log_with_awesome"
|
5
|
+
gem "capistrano-log_with_awesome", "~> 0.0.2"
|
6
6
|
|
7
7
|
group :development do
|
8
|
-
gem "rspec", ">= 2.
|
9
|
-
gem "bundler", ">= 1.0.
|
10
|
-
gem "jeweler", "~> 1.5.0
|
8
|
+
gem "rspec", ">= 2.5.0"
|
9
|
+
gem "bundler", ">= 1.0.9"
|
10
|
+
gem "jeweler", "~> 1.5.0"
|
11
11
|
gem "rcov", ">= 0"
|
12
12
|
gem "capistrano-spec"
|
13
13
|
gem "yard"
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,76 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
4
|
+
activesupport (3.0.6)
|
5
|
+
addressable (2.2.4)
|
6
|
+
bluecloth (2.1.0)
|
7
|
+
capistrano (2.5.21)
|
6
8
|
highline
|
7
9
|
net-scp (>= 1.0.0)
|
8
10
|
net-sftp (>= 2.0.0)
|
9
11
|
net-ssh (>= 2.0.14)
|
10
12
|
net-ssh-gateway (>= 1.0.0)
|
11
|
-
capistrano-campfire (0.1.
|
12
|
-
|
13
|
+
capistrano-campfire (0.1.2)
|
14
|
+
tinder
|
15
|
+
capistrano-log_with_awesome (0.0.2)
|
13
16
|
capistrano (>= 2.5.14)
|
14
17
|
capistrano-spec (0.1.0)
|
15
18
|
diff-lcs (1.1.2)
|
19
|
+
eventmachine (0.12.10)
|
20
|
+
faraday (0.5.7)
|
21
|
+
addressable (~> 2.2.4)
|
22
|
+
multipart-post (~> 1.1.0)
|
23
|
+
rack (>= 1.1.0, < 2)
|
16
24
|
git (1.2.5)
|
17
|
-
highline (1.
|
18
|
-
jeweler (1.5.
|
19
|
-
bundler (
|
25
|
+
highline (1.6.1)
|
26
|
+
jeweler (1.5.2)
|
27
|
+
bundler (~> 1.0.0)
|
20
28
|
git (>= 1.2.5)
|
21
29
|
rake
|
22
|
-
|
30
|
+
mime-types (1.16)
|
31
|
+
multipart-post (1.1.0)
|
32
|
+
net-scp (1.0.4)
|
23
33
|
net-ssh (>= 1.99.1)
|
24
|
-
net-sftp (2.0.
|
34
|
+
net-sftp (2.0.5)
|
25
35
|
net-ssh (>= 2.0.9)
|
26
|
-
net-ssh (2.
|
36
|
+
net-ssh (2.1.4)
|
27
37
|
net-ssh-gateway (1.0.1)
|
28
38
|
net-ssh (>= 1.99.1)
|
39
|
+
rack (1.2.2)
|
29
40
|
rake (0.8.7)
|
30
|
-
rcov (0.9.
|
31
|
-
|
32
|
-
|
33
|
-
rspec-
|
34
|
-
rspec-
|
35
|
-
|
36
|
-
rspec-
|
37
|
-
|
38
|
-
|
39
|
-
|
41
|
+
rcov (0.9.9)
|
42
|
+
roauth (0.0.3)
|
43
|
+
rspec (2.5.0)
|
44
|
+
rspec-core (~> 2.5.0)
|
45
|
+
rspec-expectations (~> 2.5.0)
|
46
|
+
rspec-mocks (~> 2.5.0)
|
47
|
+
rspec-core (2.5.1)
|
48
|
+
rspec-expectations (2.5.0)
|
49
|
+
diff-lcs (~> 1.1.2)
|
50
|
+
rspec-mocks (2.5.0)
|
51
|
+
tinder (1.4.3)
|
52
|
+
activesupport
|
53
|
+
eventmachine
|
54
|
+
faraday (~> 0.5.1)
|
55
|
+
mime-types
|
56
|
+
multipart-post
|
57
|
+
twitter-stream
|
58
|
+
twitter-stream (0.1.12)
|
59
|
+
eventmachine (>= 0.12.8)
|
60
|
+
roauth (>= 0.0.2)
|
61
|
+
yard (0.6.6)
|
40
62
|
|
41
63
|
PLATFORMS
|
42
64
|
ruby
|
43
65
|
|
44
66
|
DEPENDENCIES
|
45
67
|
bluecloth
|
46
|
-
bundler (>= 1.0.
|
68
|
+
bundler (>= 1.0.9)
|
47
69
|
capistrano
|
48
70
|
capistrano-campfire
|
49
|
-
capistrano-log_with_awesome
|
71
|
+
capistrano-log_with_awesome (~> 0.0.2)
|
50
72
|
capistrano-spec
|
51
|
-
jeweler (~> 1.5.0
|
73
|
+
jeweler (~> 1.5.0)
|
52
74
|
rcov
|
53
|
-
rspec (>= 2.
|
75
|
+
rspec (>= 2.5.0)
|
54
76
|
yard
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.email = "josh@technicalpickles.com"
|
19
19
|
gem.homepage = "http://github.com/technicalpickles/capistrano-mountaintop"
|
20
20
|
gem.authors = ["Joshua Nichols"]
|
21
|
-
gem.version = "1.0.
|
21
|
+
gem.version = "1.0.1"
|
22
22
|
end
|
23
23
|
Jeweler::RubygemsDotOrgTasks.new
|
24
24
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{capistrano-mountaintop}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joshua Nichols"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-06}
|
13
13
|
s.description = %q{Announce capistrano deploys from a mountaintop with campfire}
|
14
14
|
s.email = %q{josh@technicalpickles.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
".gitignore",
|
22
21
|
"Gemfile",
|
23
22
|
"Gemfile.lock",
|
24
23
|
"LICENSE",
|
@@ -49,10 +48,10 @@ Gem::Specification.new do |s|
|
|
49
48
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
49
|
s.add_runtime_dependency(%q<capistrano>, [">= 0"])
|
51
50
|
s.add_runtime_dependency(%q<capistrano-campfire>, [">= 0"])
|
52
|
-
s.add_runtime_dependency(%q<capistrano-log_with_awesome>, ["
|
53
|
-
s.add_development_dependency(%q<rspec>, [">= 2.
|
54
|
-
s.add_development_dependency(%q<bundler>, [">= 1.0.
|
55
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.0
|
51
|
+
s.add_runtime_dependency(%q<capistrano-log_with_awesome>, ["~> 0.0.2"])
|
52
|
+
s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
|
53
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.9"])
|
54
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.0"])
|
56
55
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
57
56
|
s.add_development_dependency(%q<capistrano-spec>, [">= 0"])
|
58
57
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
@@ -60,10 +59,10 @@ Gem::Specification.new do |s|
|
|
60
59
|
else
|
61
60
|
s.add_dependency(%q<capistrano>, [">= 0"])
|
62
61
|
s.add_dependency(%q<capistrano-campfire>, [">= 0"])
|
63
|
-
s.add_dependency(%q<capistrano-log_with_awesome>, ["
|
64
|
-
s.add_dependency(%q<rspec>, [">= 2.
|
65
|
-
s.add_dependency(%q<bundler>, [">= 1.0.
|
66
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.0
|
62
|
+
s.add_dependency(%q<capistrano-log_with_awesome>, ["~> 0.0.2"])
|
63
|
+
s.add_dependency(%q<rspec>, [">= 2.5.0"])
|
64
|
+
s.add_dependency(%q<bundler>, [">= 1.0.9"])
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0"])
|
67
66
|
s.add_dependency(%q<rcov>, [">= 0"])
|
68
67
|
s.add_dependency(%q<capistrano-spec>, [">= 0"])
|
69
68
|
s.add_dependency(%q<yard>, [">= 0"])
|
@@ -72,10 +71,10 @@ Gem::Specification.new do |s|
|
|
72
71
|
else
|
73
72
|
s.add_dependency(%q<capistrano>, [">= 0"])
|
74
73
|
s.add_dependency(%q<capistrano-campfire>, [">= 0"])
|
75
|
-
s.add_dependency(%q<capistrano-log_with_awesome>, ["
|
76
|
-
s.add_dependency(%q<rspec>, [">= 2.
|
77
|
-
s.add_dependency(%q<bundler>, [">= 1.0.
|
78
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.0
|
74
|
+
s.add_dependency(%q<capistrano-log_with_awesome>, ["~> 0.0.2"])
|
75
|
+
s.add_dependency(%q<rspec>, [">= 2.5.0"])
|
76
|
+
s.add_dependency(%q<bundler>, [">= 1.0.9"])
|
77
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.0"])
|
79
78
|
s.add_dependency(%q<rcov>, [">= 0"])
|
80
79
|
s.add_dependency(%q<capistrano-spec>, [">= 0"])
|
81
80
|
s.add_dependency(%q<yard>, [">= 0"])
|
@@ -16,8 +16,14 @@ module Capistrano
|
|
16
16
|
task :starting do
|
17
17
|
announced_deployer = fetch(:deployer, `git config user.name`.chomp)
|
18
18
|
announced_stage = fetch(:stage, 'production')
|
19
|
+
|
20
|
+
announcement = if fetch(:branch, nil)
|
21
|
+
"#{announced_deployer} is deploying #{application}'s #{branch} to #{announced_stage}"
|
22
|
+
else
|
23
|
+
"#{announced_deployer} is deploying #{application} to #{announced_stage}"
|
24
|
+
end
|
19
25
|
|
20
|
-
campfire_room.speak
|
26
|
+
campfire_room.speak announcement
|
21
27
|
end
|
22
28
|
|
23
29
|
|
@@ -64,4 +64,16 @@ describe Capistrano::Mountaintop, "loaded into capistrano" do
|
|
64
64
|
@configuration.find_and_execute_task('mountaintop:campfire:finished')
|
65
65
|
end
|
66
66
|
end
|
67
|
+
|
68
|
+
context "scm with no branch" do
|
69
|
+
specify "mountaintop:announce:begin speaks the user deploying and the branch being deployed to production" do
|
70
|
+
@configuration.set(:deployer, "Zim")
|
71
|
+
@configuration.set(:application, "worlddomination")
|
72
|
+
@configuration.set(:scm, :none)
|
73
|
+
@campfire_room.should_receive(:speak).with("Zim is deploying worlddomination to production")
|
74
|
+
|
75
|
+
@configuration.find_and_execute_task('mountaintop:campfire:starting')
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
67
79
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-mountaintop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Nichols
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-06 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -53,12 +53,14 @@ dependencies:
|
|
53
53
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - ~>
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
hash:
|
58
|
+
hash: 27
|
59
59
|
segments:
|
60
60
|
- 0
|
61
|
-
|
61
|
+
- 0
|
62
|
+
- 2
|
63
|
+
version: 0.0.2
|
62
64
|
requirement: *id003
|
63
65
|
- !ruby/object:Gem::Dependency
|
64
66
|
prerelease: false
|
@@ -69,14 +71,12 @@ dependencies:
|
|
69
71
|
requirements:
|
70
72
|
- - ">="
|
71
73
|
- !ruby/object:Gem::Version
|
72
|
-
hash:
|
74
|
+
hash: 27
|
73
75
|
segments:
|
74
76
|
- 2
|
77
|
+
- 5
|
75
78
|
- 0
|
76
|
-
|
77
|
-
- beta
|
78
|
-
- 19
|
79
|
-
version: 2.0.0.beta.19
|
79
|
+
version: 2.5.0
|
80
80
|
requirement: *id004
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
prerelease: false
|
@@ -87,14 +87,12 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
hash:
|
90
|
+
hash: 5
|
91
91
|
segments:
|
92
92
|
- 1
|
93
93
|
- 0
|
94
|
-
-
|
95
|
-
|
96
|
-
- 5
|
97
|
-
version: 1.0.0.rc.5
|
94
|
+
- 9
|
95
|
+
version: 1.0.9
|
98
96
|
requirement: *id005
|
99
97
|
- !ruby/object:Gem::Dependency
|
100
98
|
prerelease: false
|
@@ -105,13 +103,12 @@ dependencies:
|
|
105
103
|
requirements:
|
106
104
|
- - ~>
|
107
105
|
- !ruby/object:Gem::Version
|
108
|
-
hash:
|
106
|
+
hash: 3
|
109
107
|
segments:
|
110
108
|
- 1
|
111
109
|
- 5
|
112
110
|
- 0
|
113
|
-
|
114
|
-
version: 1.5.0.pre2
|
111
|
+
version: 1.5.0
|
115
112
|
requirement: *id006
|
116
113
|
- !ruby/object:Gem::Dependency
|
117
114
|
prerelease: false
|
@@ -180,7 +177,6 @@ extra_rdoc_files:
|
|
180
177
|
- README.markdown
|
181
178
|
files:
|
182
179
|
- .document
|
183
|
-
- .gitignore
|
184
180
|
- Gemfile
|
185
181
|
- Gemfile.lock
|
186
182
|
- LICENSE
|
data/.gitignore
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# rcov generated
|
2
|
-
coverage
|
3
|
-
|
4
|
-
# rdoc generated
|
5
|
-
rdoc
|
6
|
-
|
7
|
-
# yard generated
|
8
|
-
doc
|
9
|
-
.yardoc
|
10
|
-
|
11
|
-
# jeweler generated
|
12
|
-
pkg
|
13
|
-
|
14
|
-
# bundler
|
15
|
-
.bundle
|
16
|
-
|
17
|
-
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
18
|
-
#
|
19
|
-
# * Create a file at ~/.gitignore
|
20
|
-
# * Include files you want ignored
|
21
|
-
# * Run: git config --global core.excludesfile ~/.gitignore
|
22
|
-
#
|
23
|
-
# After doing this, these files will be ignored in all your git projects,
|
24
|
-
# saving you from having to 'pollute' every project you touch with them
|
25
|
-
#
|
26
|
-
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
27
|
-
#
|
28
|
-
# For MacOS:
|
29
|
-
#
|
30
|
-
#.DS_Store
|
31
|
-
#
|
32
|
-
# For TextMate
|
33
|
-
#*.tmproj
|
34
|
-
#tmtags
|
35
|
-
#
|
36
|
-
# For emacs:
|
37
|
-
#*~
|
38
|
-
#\#*
|
39
|
-
#.\#*
|
40
|
-
#
|
41
|
-
# For vim:
|
42
|
-
#*.swp
|