capistrano-typo3-cms 0.0.1 → 0.0.2
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/capistrano/typo3/cms.rb +13 -22
- data/lib/capistrano/typo3/cms/version.rb +4 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0b2be53c7b95c17f54b66a0e314a6c461842265
|
|
4
|
+
data.tar.gz: 206507f4ee82f37242a3838be54cee6972f518f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 719fa89142a9e361b10b281a0dabe75a89b6e9a31132e8c5c16acbfd9126c58678fe153d6b1bf598ecea63de3d79a4f0283d9ee0edd0298a5af1d9b1076adf17
|
|
7
|
+
data.tar.gz: d8e9f9f75f7192c3ad7ec51f73f61f60a69613dfd544404e21dfe5c659f6f4eb9fe83dae703c3e22cb3ebbc97927de6b14abc354747954c2ece98267372e2c17
|
data/lib/capistrano/typo3/cms.rb
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
require "capistrano/typo3/cms/version"
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
6
6
|
|
|
7
7
|
require 'capistrano/recipes/deploy/scm'
|
|
8
8
|
require 'capistrano/recipes/deploy/strategy'
|
|
9
|
+
require 'railsless-deploy'
|
|
10
|
+
require 'capistrano_colors'
|
|
11
|
+
capistrano_color_matchers = [
|
|
12
|
+
{ :match => /command finished/, :color => :hide, :prio => 10 },
|
|
13
|
+
{ :match => /executing command/, :color => :blue, :prio => 10, :attribute => :underscore },
|
|
14
|
+
{ :match => /^transaction: commit$/, :color => :magenta, :prio => 10, :attribute => :blink },
|
|
15
|
+
{ :match => /git/, :color => :white, :prio => 20, :attribute => :reverse },
|
|
16
|
+
]
|
|
17
|
+
colorize( capistrano_color_matchers )
|
|
9
18
|
|
|
10
19
|
# =========================================================================
|
|
11
20
|
# These variables may be set in the client capfile if their default values
|
|
@@ -19,25 +28,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
19
28
|
|
|
20
29
|
set(:deploy_to) { "/var/www/#{application}" }
|
|
21
30
|
|
|
22
|
-
namespace :
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
of the Capistrano deployment tasks with your project, you will need to \
|
|
26
|
-
make sure all of your servers have been prepared with `cap deploy:setup'. When \
|
|
27
|
-
you add a new server to your cluster, you can easily run the setup task \
|
|
28
|
-
on just that server by specifying the HOSTS environment variable:
|
|
29
|
-
|
|
30
|
-
$ cap HOSTS=new.server.com deploy:setup
|
|
31
|
-
|
|
32
|
-
It is safe to run this task on servers that have already been set up; it \
|
|
33
|
-
will not destroy any deployed revisions or data.
|
|
34
|
-
DESC
|
|
35
|
-
task :setup, :except => { :no_release => true } do
|
|
36
|
-
dirs = [deploy_to, releases_path, shared_path].join(' ')
|
|
37
|
-
run "#{try_sudo} mkdir -p #{releases_path} #{shared_path}"
|
|
38
|
-
run "#{try_sudo} chown -R #{user}:#{runner_group} #{deploy_to}"
|
|
39
|
-
sub_dirs = shared_children.map { |d| File.join(shared_path, d) }
|
|
40
|
-
run "#{try_sudo} chmod 2775 #{sub_dirs.join(' ')}"
|
|
41
|
-
end
|
|
42
|
-
end
|
|
31
|
+
namespace :typo3 do
|
|
32
|
+
|
|
33
|
+
end
|
|
43
34
|
end
|