capistrano-typo3 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/capistrano-typo3.gemspec +1 -1
- data/lib/capistrano/tasks/typo3.cap +29 -43
- data/lib/capistrano/typo3/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d55d8d91d1dfab97ef001a7bda72db54a97cc20
|
4
|
+
data.tar.gz: 13e9289d1b5481897fa598687fe28c38f1ee060b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d2a5e4c15aea4c26dd8a5e7fb3cadea6a41fde26d7be68c1af8eb6b420b7cafcb635b6cead69680af0ee8fbb198c82845787b785bb3c9366e1fc86322c0368f
|
7
|
+
data.tar.gz: 10a054ad0984a63d959f02a2290018f87b943d9c8516c7ae6c4ca3f3c8946afad71ce2ab5968bf12d8f1ef976aa0a5fb3296f6ab410a6de999ca9e781789d947
|
data/CHANGELOG.md
CHANGED
data/capistrano-typo3.gemspec
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# vim: ft=ruby:sts=2:expandtab
|
2
2
|
|
3
|
-
# lock '3.1.0'
|
4
|
-
# require "pp"
|
5
|
-
|
6
3
|
#----- DEFAULT SETTINGS, OVERRIDE WHEN NEEDED
|
7
4
|
|
8
5
|
set :git_no_cache, 0
|
@@ -12,6 +9,7 @@ set :rake_executable, "./bin/rake"
|
|
12
9
|
set :rake_mysql_exec_dir, "/usr/bin"
|
13
10
|
set :rake_php_executable, "/usr/bin/php"
|
14
11
|
set :t3_dont_upgrade_source, 0
|
12
|
+
set :t3_alternative_source_url, nil
|
15
13
|
|
16
14
|
#----- INTERNAL VARIABLES, DON'T CHANGE OR OVERRIDE THESE
|
17
15
|
set :hooks_before_suite_run, 0
|
@@ -44,9 +42,9 @@ namespace :typo3 do
|
|
44
42
|
execute "cd #{fetch(:deploy_to)}/current/ && touch deploy/migrations/.keep"
|
45
43
|
execute "cd #{fetch(:deploy_to)}/current/ && mkdir -p dummy/typo3conf/ext"
|
46
44
|
execute "cd #{fetch(:deploy_to)}/current/ && touch dummy/typo3conf/ext/index.html"
|
47
|
-
execute "cd #{fetch(:deploy_to)} && cp config/gitignore current/.gitignore"
|
48
45
|
end
|
49
46
|
|
47
|
+
invoke 'typo3:helper:create_gitignore'
|
50
48
|
invoke 'typo3:helper:upgrade_source'
|
51
49
|
print "initial environment has been setup"
|
52
50
|
end
|
@@ -274,8 +272,27 @@ namespace :typo3 do
|
|
274
272
|
end
|
275
273
|
end
|
276
274
|
|
277
|
-
|
278
|
-
|
275
|
+
task :create_gitignore do
|
276
|
+
on roles(:all) do
|
277
|
+
|
278
|
+
ignorestring = "
|
279
|
+
.DS_Store
|
280
|
+
._.DS_Store
|
281
|
+
*~
|
282
|
+
*.swp
|
283
|
+
*.swo
|
284
|
+
ENABLE_INSTALL_TOOL
|
285
|
+
VERSION
|
286
|
+
temp_CACHE*.php
|
287
|
+
deprecation_*.log
|
288
|
+
"
|
289
|
+
|
290
|
+
contents = StringIO.new(ignorestring)
|
291
|
+
upload! contents, "#{fetch(:deploy_to)}/current/.gitignore"
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
task :create_typo3yaml do
|
279
296
|
|
280
297
|
on roles(:all) do
|
281
298
|
|
@@ -304,6 +321,12 @@ namespace :typo3 do
|
|
304
321
|
t3yaml[stage]['TYPO3_CONF_VARS'] = fetch(:t3_conf_vars)
|
305
322
|
t3yaml[stage]['TYPO3_CONF_VARS_EXT_EXTCONF'] = fetch(:t3_conf_vars_ext_extconf)
|
306
323
|
t3yaml[stage]['TYPO3_SOURCE_PATCHES'] = fetch(:t3_source_patches)
|
324
|
+
|
325
|
+
if !fetch(:t3_alternative_source_url).nil?
|
326
|
+
t3yaml[stage]['TYPO3_ALTERNATIVE_SOURCE_URL'] = fetch(:t3_alternative_source_url)
|
327
|
+
end
|
328
|
+
|
329
|
+
|
307
330
|
t3yaml[stage]['DISABLE_EXTENSIONS'] = fetch(:t3_disable_extensions)
|
308
331
|
t3yaml[stage]['FILE_SEARCH_REPLACE'] = fetch(:t3_file_search_replace)
|
309
332
|
|
@@ -411,41 +434,4 @@ namespace :test do
|
|
411
434
|
#test chowns
|
412
435
|
end
|
413
436
|
end
|
414
|
-
|
415
|
-
namespace :depreciated do
|
416
|
-
|
417
|
-
#desc "Setup a new staged typo3 environment for the first time"
|
418
|
-
task :setup_fase1 do
|
419
|
-
on roles(:all) do
|
420
|
-
execute "rm -Rf #{fetch(:deploy_to)}"
|
421
|
-
end
|
422
|
-
|
423
|
-
invoke 'typo3:helper:install_or_update_rake_typo3'
|
424
|
-
|
425
|
-
#create releases and shared
|
426
|
-
invoke 'deploy:check'
|
427
|
-
invoke 'deploy:updating'
|
428
|
-
invoke 'typo3:helper:current_relative_symlink'
|
429
|
-
|
430
|
-
on roles(:all) do
|
431
|
-
execute "cd #{fetch(:deploy_to)} && mkdir -p shared/fileadmin shared/typo3temp shared/uploads"
|
432
|
-
execute "echo '#{fetch(:stage).to_s}' > #{fetch(:deploy_to)}/STAGE"
|
433
|
-
end
|
434
|
-
|
435
|
-
#if keep_git
|
436
|
-
on roles(:all) do
|
437
|
-
execute "cd #{fetch(:deploy_to)}/current/ && git remote set-url origin #{fetch(:repo_url)}"
|
438
|
-
execute "cd #{fetch(:deploy_to)}/current/ && mkdir -p deploy/patches"
|
439
|
-
execute "cd #{fetch(:deploy_to)}/current/ && mkdir -p deploy/migrations"
|
440
|
-
execute "cd #{fetch(:deploy_to)} && cp config/typo3.sample.yml current/deploy/typo3.yml"
|
441
|
-
execute "cd #{fetch(:deploy_to)} && cp config/gitignore current/.gitignore"
|
442
|
-
end
|
443
|
-
|
444
|
-
invoke 'typo3:helper:upgrade_source'
|
445
|
-
|
446
|
-
print "\ninitial environment has been setup to fase 1. edit current/deploy/typo3.yml\n"
|
447
|
-
print "\nand populate current with the dummy\n"
|
448
|
-
end
|
449
|
-
end
|
450
|
-
|
451
437
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-typo3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pim Snel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: capistrano
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3
|
47
|
+
version: '3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3
|
54
|
+
version: '3'
|
55
55
|
description: Capistrano 3 tasks for TYPO3 CMS. Incl. TYPO3 versions 4.5.x ... 6.2.x.
|
56
56
|
email:
|
57
57
|
- pim@lingewoud.nl
|