recipiez 0.5.0 → 0.5.1

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.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -0,0 +1,25 @@
1
+ require 'tinder'
2
+
3
+ Capistrano::Configuration.instance(true).load do
4
+
5
+ namespace :campfire do
6
+ task :notify do
7
+ campfire = Tinder::Campfire.new campfire_subdomain, :token => campfire_token, :ssl_options => {:verify => false}
8
+ campfire_room = campfire.find_room_by_id(campfire_room_id)
9
+ announced_deployer = `git config user.name`
10
+ announced_stage = fetch(:stage, 'production')
11
+ announcement = "#{announced_deployer} has deployed #{application} to #{announced_stage}"
12
+ campfire_room.speak announcement
13
+ begin
14
+ rev_log = %x( git log --pretty=format:"* #{"[%h, %an] %s"}" #{previous_revision}..#{current_revision} )
15
+ campfire_room.paste rev_log
16
+ rescue Faraday::Error::ParsingError
17
+ # FIXME deal with crazy color output instead of rescuing
18
+ # it's stuff like: ^[[0;33m and ^[[0m
19
+ campfire_room.speak "Error pasting log."
20
+ end
21
+ end
22
+ end
23
+
24
+ end
25
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recipiez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -48,6 +48,7 @@ files:
48
48
  - lib/recipiez/capistrano.rb
49
49
  - lib/recipiez/version.rb
50
50
  - recipes/apache.rb
51
+ - recipes/campfire.rb
51
52
  - recipes/chef.rb
52
53
  - recipes/deployment_recipiez.rb
53
54
  - recipes/foreman.rb