fdlcap 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fdlcap.gemspec +2 -1
- data/lib/fdlcap/recipes/custom_maintenance_page.rb +17 -0
- data/lib/fdlcap/recipes/slice.rb +0 -13
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
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.
|
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
|
data/lib/fdlcap/recipes/slice.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 0.4.
|
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
|