capistrano-helpers 0.5.3 → 0.5.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.markdown +6 -0
- data/VERSION +1 -1
- data/capistrano-helpers.gemspec +1 -1
- data/lib/capistrano-helpers/campfire.rb +9 -5
- metadata +3 -3
data/CHANGELOG.markdown
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.4
|
data/capistrano-helpers.gemspec
CHANGED
|
@@ -18,11 +18,15 @@ CapistranoHelpers.with_configuration do
|
|
|
18
18
|
end
|
|
19
19
|
username = `whoami`.chomp
|
|
20
20
|
config_file = fetch(:campfire_config, 'config/campfire.yml')
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
begin
|
|
22
|
+
config = YAML::load_file(config_file)
|
|
23
|
+
campfire = Tinder::Campfire.new(config['account'], :username => config['email'], :password => config['password'])
|
|
24
|
+
room = campfire.find_room_by_name(config['room'])
|
|
25
|
+
room.speak("#{username} just deployed #{application} #{branch} to #{stage}")
|
|
26
|
+
room.leave
|
|
27
|
+
rescue Errno::ENOENT
|
|
28
|
+
puts "Could not open config/campfire.yml. Skipping campfire notification."
|
|
29
|
+
end
|
|
26
30
|
end
|
|
27
31
|
end
|
|
28
32
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 3
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.5.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Scott Woods
|