capistrano-contao 0.0.3 → 0.0.4
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/capistrano-contao.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = 'capistrano-contao'
|
15
15
|
gem.require_paths = ['lib']
|
16
|
-
gem.version = '0.0.
|
16
|
+
gem.version = '0.0.4'
|
17
17
|
|
18
18
|
# Runtime dependencies
|
19
19
|
gem.add_dependency 'rake'
|
@@ -11,10 +11,6 @@ require 'capistrano/ext/deploy'
|
|
11
11
|
require 'capistrano/ext/item'
|
12
12
|
require 'capistrano/ext/content'
|
13
13
|
|
14
|
-
unless Capistrano::Configuration.respond_to?(:instance)
|
15
|
-
abort 'capistrano/ext/contao requires capistrano 2'
|
16
|
-
end
|
17
|
-
|
18
14
|
Capistrano::Configuration.instance(:must_exist).load do
|
19
15
|
Rails.env = 'production'
|
20
16
|
|
@@ -1,7 +1,3 @@
|
|
1
|
-
unless Capistrano::Configuration.respond_to?(:instance)
|
2
|
-
abort 'capistrano/ext/decouple_from_rails requires capistrano 2'
|
3
|
-
end
|
4
|
-
|
5
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
6
2
|
# Prevent capistrano from creating log, system and pids folders.
|
7
3
|
set :shared_children, Array.new
|
@@ -1,7 +1,3 @@
|
|
1
|
-
unless Capistrano::Configuration.respond_to?(:instance)
|
2
|
-
abort 'capistrano/ext/contao requires capistrano 2'
|
3
|
-
end
|
4
|
-
|
5
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
6
2
|
namespace :deploy do
|
7
3
|
desc 'Check if the remote is ready, should we run cap deploy:setup?'
|
@@ -46,6 +42,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
46
42
|
setup unless main_task == 'deploy:setup'
|
47
43
|
end
|
48
44
|
|
45
|
+
desc '[internal] Clean up folders'
|
46
|
+
task :clean_folders, :roles => :app do
|
47
|
+
clean_folder fetch(:deploy_to)
|
48
|
+
end
|
49
|
+
|
49
50
|
desc '[internal] Symlink public folder'
|
50
51
|
task :symlink_public_folders, :roles => :web, :except => { :no_release => true } do
|
51
52
|
deploy_to = fetch :deploy_to
|
@@ -70,6 +71,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
70
71
|
# Dependencies
|
71
72
|
before 'deploy', 'deploy:check_if_remote_ready'
|
72
73
|
after 'deploy:restart', 'deploy:fix_permissions'
|
74
|
+
after 'deploy:restart', 'deploy:clean_folders'
|
73
75
|
before 'deploy:setup', 'deploy:folders'
|
74
76
|
after 'deploy:setup', 'deploy:symlink_public_folders'
|
75
77
|
end
|
data/lib/capistrano/ext/item.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-contao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -161,6 +161,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- - ! '>='
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
hash: -916874106033179152
|
164
167
|
requirements: []
|
165
168
|
rubyforge_project:
|
166
169
|
rubygems_version: 1.8.23
|
@@ -168,4 +171,3 @@ signing_key:
|
|
168
171
|
specification_version: 3
|
169
172
|
summary: ''
|
170
173
|
test_files: []
|
171
|
-
has_rdoc:
|