capistrano-php 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest ADDED
@@ -0,0 +1,5 @@
1
+ Manifest
2
+ README.rdoc
3
+ Rakefile
4
+ lib/capistrano/php.rb
5
+ lib/init.rb
data/README.rdoc ADDED
@@ -0,0 +1,47 @@
1
+ = capistrano-php
2
+
3
+ * http://github.com/#{github_username}/#{project_name}
4
+
5
+ == DESCRIPTION:
6
+
7
+ Overrides the rails specific Capistrano tasks so you don't have
8
+ to do that by yourself when deploying a PHP application.
9
+
10
+ == SYNOPSIS:
11
+
12
+ In your deploy.rb, insert the following line at the top:
13
+ include 'capistrano/php.rb'
14
+
15
+
16
+ == REQUIREMENTS:
17
+
18
+ * Capistrano gem
19
+
20
+ == INSTALL:
21
+
22
+ * sudo gem install namics-capistrano-php
23
+
24
+ == LICENSE:
25
+
26
+ (The MIT License)
27
+
28
+ Copyright (c) 2009 FIXME full name
29
+
30
+ Permission is hereby granted, free of charge, to any person obtaining
31
+ a copy of this software and associated documentation files (the
32
+ 'Software'), to deal in the Software without restriction, including
33
+ without limitation the rights to use, copy, modify, merge, publish,
34
+ distribute, sublicense, and/or sell copies of the Software, and to
35
+ permit persons to whom the Software is furnished to do so, subject to
36
+ the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be
39
+ included in all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
42
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
43
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
44
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
45
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
46
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
47
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('capistrano-php', '0.1.0') do |p|
6
+ p.description = "Use capistrano for PHP deployment without overriding all methods by yourself."
7
+ p.url = "http://github.com/namics/capistrano-php"
8
+ p.author = "Christian Felder, Namics"
9
+ p.email = "christian.felder@namics.com"
10
+ p.ignore_pattern = ["tmp/*", "script/*"]
11
+ p.development_dependencies = ['capistrano']
12
+ end
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{capistrano-php}
5
+ s.version = "0.1.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Christian Felder, Namics"]
9
+ s.date = %q{2009-09-30}
10
+ s.description = %q{Use capistrano for PHP deployment without overriding all methods by yourself.}
11
+ s.email = %q{christian.felder@namics.com}
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/capistrano/php.rb", "lib/init.rb"]
13
+ s.files = ["Manifest", "README.rdoc", "Rakefile", "lib/capistrano/php.rb", "lib/init.rb", "capistrano-php.gemspec"]
14
+ s.homepage = %q{http://github.com/namics/capistrano-php}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Capistrano-php", "--main", "README.rdoc"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{capistrano-php}
18
+ s.rubygems_version = %q{1.3.4}
19
+ s.summary = %q{Use capistrano for PHP deployment without overriding all methods by yourself.}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ s.add_development_dependency(%q<capistrano>, [">= 0"])
27
+ else
28
+ s.add_dependency(%q<capistrano>, [">= 0"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<capistrano>, [">= 0"])
32
+ end
33
+ end
@@ -0,0 +1,15 @@
1
+ Capistrano::Configuration.instance.load do
2
+ namespace :deploy do
3
+ task :finalize_update do
4
+ transaction do
5
+ run "chmod -R g+w #{releases_path}/#{release_name}"
6
+ end
7
+ end
8
+ task :migrate do
9
+ # do nothing
10
+ end
11
+ task :restart do
12
+ # do nothing
13
+ end
14
+ end
15
+ end
data/lib/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'capistrano/php'
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-php
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Christian Felder, Namics
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-30 00:00:00 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: capistrano
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: Use capistrano for PHP deployment without overriding all methods by yourself.
26
+ email: christian.felder@namics.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - README.rdoc
33
+ - lib/capistrano/php.rb
34
+ - lib/init.rb
35
+ files:
36
+ - Manifest
37
+ - README.rdoc
38
+ - Rakefile
39
+ - lib/capistrano/php.rb
40
+ - lib/init.rb
41
+ - capistrano-php.gemspec
42
+ has_rdoc: true
43
+ homepage: http://github.com/namics/capistrano-php
44
+ licenses: []
45
+
46
+ post_install_message:
47
+ rdoc_options:
48
+ - --line-numbers
49
+ - --inline-source
50
+ - --title
51
+ - Capistrano-php
52
+ - --main
53
+ - README.rdoc
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "1.2"
67
+ version:
68
+ requirements: []
69
+
70
+ rubyforge_project: capistrano-php
71
+ rubygems_version: 1.3.4
72
+ signing_key:
73
+ specification_version: 3
74
+ summary: Use capistrano for PHP deployment without overriding all methods by yourself.
75
+ test_files: []
76
+