capper 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rst CHANGED
@@ -148,15 +148,6 @@ The bundler recipe is an extension of bundlers native capistrano integration:
148
148
  - The option ``ruby_exec_prefix`` is set to ``bundle exec`` for convenience.
149
149
  (see ``ruby`` recipe for details)
150
150
 
151
- config
152
- ------
153
-
154
- The config recipe adds support for a dedicated repository with configuration
155
- files. It is very preliminary right now and only supports git. The repository
156
- specified with ``config_repo`` will be cloned into ``shared/config`` and all
157
- files specified in the ``config_files`` array are copied to
158
- ``#{release_path}/config``.
159
-
160
151
  delayed_job
161
152
  -----------
162
153
 
@@ -0,0 +1,18 @@
1
+ # redefine the notify task without after hooks, so we can use them in
2
+ # specific stages only.
3
+ namespace :airbrake do
4
+ desc "Notify airbrake of the deployment"
5
+ task :notify, :except => { :no_release => true } do
6
+ rails_env = fetch(:airbrake_env, fetch(:rails_env, "production"))
7
+ local_user = ENV['USER'] || ENV['USERNAME']
8
+ executable = fetch(:rake, 'rake')
9
+ directory = configuration.current_release
10
+
11
+ notify_command = "cd #{directory}; #{executable} RAILS_ENV=#{rails_env} airbrake:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
12
+
13
+ logger.info "Notifying Airbrake of Deploy (#{notify_command})"
14
+ result = ""
15
+ run(notify_command, :once => true) { |ch, stream, data| result << data }
16
+ logger.info "Airbrake Notification Complete."
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Capper
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.4
5
+ version: 0.9.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Benedikt B\xC3\xB6hm"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-16 00:00:00 +01:00
13
+ date: 2012-01-06 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -66,12 +66,11 @@ files:
66
66
  - Rakefile
67
67
  - capper.gemspec
68
68
  - lib/capper.rb
69
+ - lib/capper/airbrake.rb
69
70
  - lib/capper/base.rb
70
71
  - lib/capper/bundler.rb
71
- - lib/capper/config.rb
72
72
  - lib/capper/delayed_job.rb
73
73
  - lib/capper/django.rb
74
- - lib/capper/hoptoad.rb
75
74
  - lib/capper/monit.rb
76
75
  - lib/capper/multistage.rb
77
76
  - lib/capper/python.rb
@@ -1,24 +0,0 @@
1
- _cset(:config_repo, nil)
2
-
3
- after "deploy:setup", "config:setup"
4
- after "deploy:update_code", "config:deploy"
5
-
6
- namespace :config do
7
- desc "Setup configuration repository if any"
8
- task :setup, :roles => :app, :except => { :no_release => true } do
9
- unless config_repo.nil?
10
- run "rm -rf #{config_path} && git clone -q #{config_repo} #{config_path}"
11
- end
12
- end
13
-
14
- desc "Deploy config files from shared/config to current release"
15
- task :deploy, :roles => :app, :except => { :no_release => true } do
16
- unless config_repo.nil?
17
- run "cd #{config_path} && git pull -q"
18
- end
19
-
20
- fetch(:config_files, []).each do |f|
21
- run "cp #{config_path}/#{f} #{release_path}/config/"
22
- end
23
- end
24
- end
@@ -1,18 +0,0 @@
1
- # redefine the notify task without after hooks, so we can use them in
2
- # specific stages only.
3
- namespace :hoptoad do
4
- desc "Notify Hoptoad of the deployment"
5
- task :notify, :except => { :no_release => true } do
6
- rails_env = fetch(:hoptoad_env, fetch(:rails_env, "production"))
7
- local_user = ENV['USER'] || ENV['USERNAME']
8
- executable = fetch(:rake, 'rake')
9
-
10
- notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
11
- notify_command << " DRY_RUN=true" if dry_run
12
- notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
13
-
14
- puts "Notifying Hoptoad of Deploy (#{notify_command})"
15
- `#{notify_command}`
16
- puts "Hoptoad Notification Complete."
17
- end
18
- end