sumodev_deploy 0.4.6 → 0.5.0
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.
- checksums.yaml +4 -4
- data/lib/sumodev_deploy/tasks/redirect.rb +13 -0
- data/sumodev_deploy.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98c6b2daa2e577896a6ca10dfa955057dc708870
|
|
4
|
+
data.tar.gz: 008887a990932276188379159012711e53e40df2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbd2b08694aff87434a717da94e3317e64e9d5f9a2a1300c2380b632fba0a83ae688783d54382681495f27a96146482cf4aa707f69d8579223277c0e837148ed
|
|
7
|
+
data.tar.gz: 3835ae0b69b258fb6fbb9236b30744570f78c5a80fbf04249b6701dfb6512be723e92d47f1364de93fdf322aa01d6ee53ed27752b072921cb8e0c9f567a4763e
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
|
2
2
|
namespace :sumodev do
|
|
3
3
|
namespace :redirect do
|
|
4
|
+
task :check do
|
|
5
|
+
current_symlink = capture("readlink -f #{current_path}").chomp
|
|
6
|
+
if current_symlink == "#{shared_path}/redirect" # Project has redirect set up
|
|
7
|
+
sure = Capistrano::CLI.ui.ask "This application has a redirect page installed. Are you sure you want to override this? (y)es/(n)o"
|
|
8
|
+
|
|
9
|
+
if sure !~ /^y(es)?/
|
|
10
|
+
exit 1
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
4
15
|
desc "Installs the redirect page for the site"
|
|
5
16
|
task :put, :roles => :app do
|
|
6
17
|
unless exists?(:production_url)
|
|
@@ -25,4 +36,6 @@ Capistrano::Configuration.instance.load do
|
|
|
25
36
|
end
|
|
26
37
|
end
|
|
27
38
|
end
|
|
39
|
+
|
|
40
|
+
before 'deploy', 'sumodev:redirect:check'
|
|
28
41
|
end
|
data/sumodev_deploy.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sumodev_deploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan De Poorter
|
|
@@ -75,3 +75,4 @@ signing_key:
|
|
|
75
75
|
specification_version: 4
|
|
76
76
|
summary: Deployment for Fork 3.x.x with Capistrano
|
|
77
77
|
test_files: []
|
|
78
|
+
has_rdoc:
|