capistrano-typo3-cms 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2dd193269a0b288624635a505083df198bb5b479
4
+ data.tar.gz: cdfa0979227f6e629bb9a7e266abea6d19f1dd7a
5
+ SHA512:
6
+ metadata.gz: 330a670aa7c1902730b596362cb4df80ac2f173ccc0ddbe801dab9a9a0035c1ee87abc31c536b7d646dcd797740d925adda439375ea9039d551e16f2470a7a7c
7
+ data.tar.gz: 51fa8410c4a20356fc04b9973f9fc70f2c046e09a6ceef27eeac8e34a8eb4ea9941afae51a042a83560123dcbbf28ddcd05418378e9422e510e71e33ad4af5ea
@@ -0,0 +1,23 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ nbproject
19
+ .idea
20
+ nbproject
21
+ .coveralls.yml
22
+ .DS_Store
23
+ vendor
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # gem's dependencies specified in capistrano-typo3-cms.gemspec
4
+ gemspec
5
+
6
+ group :test do
7
+ gem 'rake'
8
+ end
9
+
10
+ gem "minitest"
11
+ gem "coveralls", require: false
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 André Lademann
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,101 @@
1
+ # capistrano-typo3-cms
2
+
3
+ This is an extension for the deployment tool Capistrano. This extension facilitates the deploy of TYPO3 CMS projects.
4
+
5
+ It includeds follows additional packages:
6
+
7
+ 1. capistrano
8
+ - capistrano-ext
9
+ - railsless-deploy
10
+ - capistrano_colors
11
+
12
+ ___
13
+
14
+ [![Build Status](https://travis-ci.org/programmerqeu/capistrano-typo3-cms.png?branch=master)](https://travis-ci.org/programmerqeu/capistrano-typo3-cms)
15
+ [![Gem Version](https://badge.fury.io/rb/capistrano-typo3-cms.png)](http://badge.fury.io/rb/capistrano-typo3-cms)
16
+ [![Dependency Status](https://gemnasium.com/programmerqeu/capistrano-typo3-cms.png)](https://gemnasium.com/programmerqeu/capistrano-typo3-cms)
17
+ [![Code Climate](https://codeclimate.com/github/programmerqeu/capistrano-typo3-cms.png)](https://codeclimate.com/github/programmerqeu/capistrano-typo3-cms)
18
+ [![Coverage Status](https://coveralls.io/repos/programmerqeu/capistrano-typo3-cms/badge.png?branch=master)](https://coveralls.io/r/programmerqeu/capistrano-typo3-cms)
19
+ [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/857fba632a5e514065b83540dc2d72b4 "githalytics.com")](http://githalytics.com/programmerqeu/capistrano-typo3-cms)
20
+
21
+
22
+ ## Installation
23
+
24
+ Install it yourself wit rubygems package manager:
25
+ ```bash
26
+ gem install capistrano-typo3-cms
27
+ ```
28
+
29
+ Need help to install? http://docs.rubygems.org/read/chapter/3
30
+ Or easer with RVM: https://rvm.io/
31
+
32
+ ## Usage
33
+
34
+ ### Configuration
35
+
36
+ **Capify** your project
37
+ ```bash
38
+ $ cd /path/to/your/project
39
+ $ capify ./
40
+ ```
41
+ Edit your **./Capfile** to include _capistrano-typo3-cms_
42
+
43
+ ```ruby
44
+ load 'deploy' if respond_to?(:namespace)
45
+
46
+ require 'capistrano'
47
+ require 'rubygems'
48
+ require 'railsless-deploy'
49
+ require 'capistrano-typo3-cms'
50
+
51
+ load 'lib/capistrano/mysql'
52
+ load 'config/deploy' # remove this line to skip loading any of the default
53
+ ```
54
+ In case of using multistage create config files for every enviroment (deploy/staging.rb):
55
+ - http://capifony.org/cookbook/using-the-multistage-extension.html
56
+ - https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension
57
+
58
+ ### Deploy
59
+ cap <enviroment> deploy:setup
60
+ cap <enviroment> deploy
61
+
62
+
63
+ ## Project roadmap
64
+ ### Version 0.0.1
65
+
66
+ - Documentation "Deploying with Capistrano and TYPO3 CMS
67
+ - Resolving dependencies for PHP projects
68
+
69
+ ### Version 1.0.0
70
+
71
+ Additional TYPO3:CMS tasks
72
+
73
+ typo3:cms:setup
74
+ typo3:cms:cc
75
+ typo3:cms:check
76
+ typo3:cms:data:push
77
+ typo3:cms:data:pull
78
+ typo3:cms:data:backup
79
+
80
+ ### Version 2.0.0
81
+ Including new package "capistrano-mysql" to manage database data.
82
+
83
+ mysql:push
84
+ mysql:pull
85
+ mysql:backup
86
+ mysql:sync <source_env> <target_env>
87
+ mysql:migrate
88
+
89
+ ### Version 3.0.0
90
+ CLI command support to create a new TYPO3 CMS project from the scratch.
91
+ ```bash
92
+ $ typo3 init ./
93
+ ```
94
+
95
+ ## Contributing
96
+
97
+ 1. Fork it
98
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
99
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
100
+ 4. Push to the branch (`git push origin my-new-feature`)
101
+ 5. Create new Pull Request
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ Bundler.setup(:default, :development)
4
+
5
+ require 'rake/testtask'
6
+
7
+ Rake::TestTask.new(:test) do |test|
8
+ test.libs << 'lib' << 'test'
9
+ test.pattern = 'test/**/*_test.rb'
10
+ test.verbose = true
11
+ end
12
+
13
+ require 'coveralls/rake/task'
14
+ Coveralls::RakeTask.new
15
+
16
+ task :default => :test
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/typo3/cms/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "capistrano-typo3-cms"
8
+ spec.version = Capistrano::Typo3::Cms::VERSION
9
+ spec.authors = ["André Lademann"]
10
+ spec.email = ["andre@programmerq.eu"]
11
+ spec.date = %q{2013-06-21}
12
+ spec.description = "To setup and deploy TYPO3 CMS projects."
13
+ spec.summary = "Extend the Capistrano gem with useful recipes for TYPO3 CMS. Ready to go with capistranO!"
14
+ spec.homepage = %q{https://github.com/programmerqeu/capistrano-typo3-cms}
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency 'capistrano' , '~> 2.15.2'
23
+ spec.add_dependency 'capistrano-ext','~> 1.2.1'
24
+ spec.add_dependency 'capistrano_colors', '~> 0.5.5'
25
+ spec.add_dependency 'railsless-deploy', '~> 1.1.1'
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.3"
28
+ spec.add_development_dependency "coveralls", "~> 0.6.7"
29
+ spec.add_development_dependency "minitest", "~> 5.0.5"
30
+ spec.add_development_dependency "rake", "~> 10.0.4"
31
+
32
+ end
@@ -0,0 +1,43 @@
1
+ require "capistrano/typo3/cms/version"
2
+ require "capistrano/typo3/cms/git"
3
+
4
+
5
+ Capistrano::Configuration.instance(:must_exist).load do
6
+
7
+ require 'capistrano/recipes/deploy/scm'
8
+ require 'capistrano/recipes/deploy/strategy'
9
+
10
+ # =========================================================================
11
+ # These variables may be set in the client capfile if their default values
12
+ # are not sufficient.
13
+ # =========================================================================
14
+
15
+ set :scm, :git
16
+ set :deploy_via, :remote_cache
17
+ _cset :branch, "master"
18
+ set :git_enable_submodules, true
19
+
20
+ set(:deploy_to) { "/var/www/#{application}" }
21
+
22
+ namespace :deploy do
23
+ desc <<-DESC
24
+ Prepares one or more servers for deployment. Before you can use any \
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
43
+ end
@@ -0,0 +1,13 @@
1
+ module Capistrano
2
+ module Typo3
3
+ module Cms
4
+ VERSION = "0.0.1"
5
+ class Meme
6
+ def getVersion
7
+ "YEAR!"
8
+ end
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ require_relative '../../../test_helper'
2
+
3
+ $:.unshift File.join(File.dirname(__FILE__),'..','lib/capistrano/typo3/cms/')
4
+
5
+ class Version_test < Minitest::Test
6
+ def setup
7
+ @version = Capistrano::Typo3::Cms.new
8
+ end
9
+
10
+ describe "Version", "Check version is set " do
11
+ def test_version_number_exists
12
+ assert Capistrano::Typo3::Cms::VERSION
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'minitest/autorun'
2
+ require 'minitest/pride'
3
+
4
+ unless defined?(TestExtensions)
5
+ $:.unshift "#{File.dirname(__FILE__)}/../lib"
6
+ begin
7
+ require 'rubygems'
8
+ rescue LoadError
9
+ end
10
+ require 'minitest/spec'
11
+ require 'minitest/autorun'
12
+ end
13
+
14
+ require 'coveralls'
15
+ Coveralls.wear!
metadata ADDED
@@ -0,0 +1,169 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-typo3-cms
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - André Lademann
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 2.15.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 2.15.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano-ext
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: capistrano_colors
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.5.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: railsless-deploy
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.6.7
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.6.7
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 5.0.5
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 5.0.5
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 10.0.4
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 10.0.4
125
+ description: To setup and deploy TYPO3 CMS projects.
126
+ email:
127
+ - andre@programmerq.eu
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - .gitignore
133
+ - Gemfile
134
+ - LICENSE.txt
135
+ - README.md
136
+ - Rakefile
137
+ - capistrano-typo3-cms.gemspec
138
+ - lib/capistrano/typo3/cms.rb
139
+ - lib/capistrano/typo3/cms/version.rb
140
+ - test/capistrano/typo3/cms/version_test.rb
141
+ - test/test_helper.rb
142
+ homepage: https://github.com/programmerqeu/capistrano-typo3-cms
143
+ licenses:
144
+ - MIT
145
+ metadata: {}
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 2.0.3
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: Extend the Capistrano gem with useful recipes for TYPO3 CMS. Ready to go
166
+ with capistranO!
167
+ test_files:
168
+ - test/capistrano/typo3/cms/version_test.rb
169
+ - test/test_helper.rb