capistrano-af83 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bc63b5f0cf5b0ad1e37c657d2d504a83c4fcdba
4
- data.tar.gz: f62e1020411d6abc567564c0c6af9582af010f9e
3
+ metadata.gz: e3795cf5c06ba2e7a330d60f5581089640638717
4
+ data.tar.gz: 1c20772c07450b4e4feaef27afa55d466a1b5c8b
5
5
  SHA512:
6
- metadata.gz: 5f8fc94089056a78aa8296bf8115e476227b7d2e7e45eef4b0baf61289696d55f0a0ec9d14a048a69a2e457d94dac0c9d4d141c32198fe6ecce2442d29bc007d
7
- data.tar.gz: 5f4c9e6e4f4e146ffc14ab894b45525bade7f5f3c19e6eb92fb86d6df03bea63f123d5773fe069450baa3bd94efef0dbe2880a37d072e567cde392bab43f5f0b
6
+ metadata.gz: e86bdf33cfb6c8dcce77ec0e18f00c84dce4d92f6d2722dd455bde314553acb506d180ba9c1c4ed772d4c7f6d421a42b904be7dcfaacf02d584b9a060b436fa2
7
+ data.tar.gz: 7b2a3e7b0ebcd3b53822f07df891406be14276cca50d8b5305970442e3421f6b675ebcb59b7303084d3f02a6c278f910aac999767e107f0360f4fe6ee57fe93f
@@ -1,5 +1,5 @@
1
1
  # Load the capistrano extensions
2
2
  require "capistrano-notification"
3
- require 'capistrano/maintenance'
3
+ require 'capistrano-custom-maintenance'
4
4
  require "sushi/ssh"
5
5
  require "bundler/capistrano"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module AF83
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-af83
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Michel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-28 00:00:00.000000000 Z
11
+ date: 2013-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: capistrano-maintenance
42
+ name: capistrano-custom-maintenance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.2
47
+ version: 0.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.2
54
+ version: 0.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: shout-bot
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +91,6 @@ files:
91
91
  - lib/capistrano/af83.rb
92
92
  - lib/capistrano/af83/bower.rb
93
93
  - lib/capistrano/af83/bundler.rb
94
- - lib/capistrano/af83/custom_maintenance_page.rb
95
94
  - lib/capistrano/af83/database.rb
96
95
  - lib/capistrano/af83/default.rb
97
96
  - lib/capistrano/af83/deploy/assets.rb
@@ -1,19 +0,0 @@
1
- # Use a custom maintenance page
2
- # See http://ariejan.net/2011/09/19/capistrano-and-the-custom-maintenance-page
3
-
4
- namespace :deploy do
5
- namespace :web do
6
- desc "Web disable"
7
- task :disable, :roles => :web, :except => { :no_release => true } do
8
- on_rollback { run "rm #{shared_path}/system/maintenance.html" }
9
- require 'erb'
10
- reason, deadline = ENV['REASON'], ENV['deadline']
11
- template = File.read(File.join(File.dirname(__FILE__), "templates", "maintenance.rhtml"))
12
- result = ERB.new(template).result(binding)
13
- put result, "#{shared_path}/system/maintenance.html", :mode => 0644
14
- end
15
- end
16
- end
17
-
18
- before "deploy:cold", "deploy:web:disable"
19
- after "deploy:cold", "deploy:web:enable"