sumodev_deploy 0.4.6 → 0.5.0

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: efc55ba0864cff84dc4b14c39686f491eb664546
4
- data.tar.gz: b205e5be98a8584a0ba3daa66e9fb41e184156ca
3
+ metadata.gz: 98c6b2daa2e577896a6ca10dfa955057dc708870
4
+ data.tar.gz: 008887a990932276188379159012711e53e40df2
5
5
  SHA512:
6
- metadata.gz: 261a3d2a85cbf365c51a98f42c6e22ffc8ddca16d71424d74c51555238984ef32121cdedcc0b577a500eef5c3971b76e0f3d47aa0c284848d7cabbb917d70a33
7
- data.tar.gz: aca3d30ae1708bc2edc895c3ff86cbeec6b127f3f54758e5b8b340545ce9ddfe3e7009c0ba753342ede79a9b4e64f9535e67be7bc897f4e4f2ffcdd4935ff079
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sumodev_deploy"
5
- s.version = "0.4.6"
5
+ s.version = "0.5.0"
6
6
 
7
7
  s.authors = ["Jan De Poorter"]
8
8
  s.date = "2012-04-18"
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.6
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: