fdlcap 0.4.5 → 0.4.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
data/fdlcap.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fdlcap}
8
- s.version = "0.4.5"
8
+ s.version = "0.4.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Factory Design Labs", "Gabe Varela", "Jay Zeschin"]
@@ -38,6 +38,7 @@ Gem::Specification.new do |s|
38
38
  "lib/fdlcap/recipes/autotagger.rb",
39
39
  "lib/fdlcap/recipes/check_revision.rb",
40
40
  "lib/fdlcap/recipes/craken.rb",
41
+ "lib/fdlcap/recipes/custom_maintenance_page.rb",
41
42
  "lib/fdlcap/recipes/database.rb",
42
43
  "lib/fdlcap/recipes/delayed_job.rb",
43
44
  "lib/fdlcap/recipes/deploy.rb",
@@ -0,0 +1,17 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ # Deploy the custom maintenance page
3
+ define_recipe :custom_maintenance_page do
4
+
5
+ # Callbacks
6
+ before "deploy:web:disable", "slice:copy_maintenance_page"
7
+
8
+ # Tasks
9
+ namespace :slice do
10
+ desc "Copy the maintenance page from the public directory to the shared directory"
11
+ task :copy_maintenance_page, :roles => :app do
12
+ upload "public/maintenance.html","#{shared_path}/system/maintenance.html.custom", :via => :scp
13
+ end
14
+ end
15
+
16
+ end
17
+ end
@@ -45,17 +45,4 @@ Capistrano::Configuration.instance(:must_exist).load do
45
45
 
46
46
  end
47
47
 
48
- # Deploy the custom maintenance page
49
- define_recipe :custom_maintenance_page do
50
-
51
- namespace :slice do
52
- desc "Copy the maintenance page from the public directory to the shared directory"
53
- task :copy_maintenance_page, :roles => :app do
54
- upload "public/maintenance.html","#{shared_path}/system/maintenance.html.custom", :via => :scp
55
- end
56
- end
57
-
58
- before "deploy:web:disable", "slice:copy_maintenance_page"
59
- end
60
-
61
48
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Factory Design Labs
@@ -105,6 +105,7 @@ files:
105
105
  - lib/fdlcap/recipes/autotagger.rb
106
106
  - lib/fdlcap/recipes/check_revision.rb
107
107
  - lib/fdlcap/recipes/craken.rb
108
+ - lib/fdlcap/recipes/custom_maintenance_page.rb
108
109
  - lib/fdlcap/recipes/database.rb
109
110
  - lib/fdlcap/recipes/delayed_job.rb
110
111
  - lib/fdlcap/recipes/deploy.rb