capistrano-cake 0.0.1
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 +15 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/README.md +46 -0
- data/Rakefile +1 -0
- data/capistrano-cake.gemspec +26 -0
- data/lib/capistrano/cake/cake.rb +1 -0
- data/lib/capistrano/cake/console.rb +1 -0
- data/lib/capistrano/cake/defaults.rb +11 -0
- data/lib/capistrano/cake/migrations.rb +1 -0
- data/lib/capistrano/cake.rb +11 -0
- data/lib/capistrano/tasks/cake.rake +3 -0
- data/lib/capistrano/tasks/console.rake +14 -0
- data/lib/capistrano/tasks/migrations.rake +7 -0
- data/lib/capistrano-cake.rb +0 -0
- metadata +141 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OGQzM2YxMWI0MmE4NWQzMTQzYTViMjQwNGU2OWJkYjI0MGRjNGEzMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2QyOGNkMWQ2YjMyYjVkMmMzMDBmNmNmMmE1N2M2N2IzMTA5NzgzNQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MzM0YTRkNTI5NTQxMDYyMmIzYmFhN2IxMmFhZGI0MDljMTNjM2E2OTRhOWYz
|
10
|
+
NzI4NGUwNmY1ZGIyNmE3NmIwNDEzMzYxMzBkOWZjZGQ5OGI1NmEyNmI4Y2M4
|
11
|
+
MTBlOWQ1OTg2NDZmMmQ3YzBmODU5MGJhZjI2OTM4MjY2NzQwNjE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NGNmYTRlNDAyMWI3NzA5ODQ2OWMyYWQyZjUwNzBhYWI0MTM3MWUyOTg1YWI5
|
14
|
+
NDM4MTJiMjIyYmJiZTIzZjgyN2ZiYzRiYjcxNjk3ZTMwNzY2MjUwZjJkZWZj
|
15
|
+
MGY5YmE3ZWVmYTgwMzc3ZmIyN2E5N2NiNDFlYzM3MTUxZGZhNzc=
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Joshua F. Rountree (joshua@swodev.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Capistrano::FilePermissions
|
2
|
+
|
3
|
+
File permissions handling for Capistrano v3.*
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'capistrano', '~> 3.0.0'
|
11
|
+
gem 'capistrano-cake'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install capistrano-cake
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Require the module in your `Capfile`:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'capistrano/cake'
|
28
|
+
```
|
29
|
+
|
30
|
+
### Configuration
|
31
|
+
|
32
|
+
The gem makes the following configuration variables available (shown with defaults)
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
set :cake_roles, :all
|
36
|
+
set :cake_console_flags, "--env production"
|
37
|
+
set :cake_server_user, "www-data"
|
38
|
+
```
|
39
|
+
|
40
|
+
## Contributing
|
41
|
+
|
42
|
+
1. Fork it
|
43
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
44
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
45
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
46
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'capistrano-cake'
|
7
|
+
spec.version = '0.0.1'
|
8
|
+
spec.authors = ['Joshua F. Rountree', 'Justin Slamka']
|
9
|
+
spec.email = ['joshua@swodev.com']
|
10
|
+
spec.description = %q{CakePHP deployment for Capistrano 3.x}
|
11
|
+
spec.summary = %q{Deploy your CakePHP apps with Capistrano 3!}
|
12
|
+
spec.homepage = 'https://github.com/joshuairl/capistrano-cake'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_runtime_dependency 'capistrano', '~> 3.0', '>= 3.0.0'
|
21
|
+
spec.add_runtime_dependency 'capistrano-composer', '~> 0.0', '>= 0.0.3'
|
22
|
+
spec.add_runtime_dependency 'capistrano-file-permissions', '~> 0'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rake', '~> 0'
|
26
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/cake.rake", __FILE__)
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/console.rake", __FILE__)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
set :cake_roles, :all
|
2
|
+
set :cake_console_flags, "--env production"
|
3
|
+
set :cake_server_user, "www-data"
|
4
|
+
|
5
|
+
# fix bug in capistrano-file-permissions
|
6
|
+
set :linked_dirs, []
|
7
|
+
|
8
|
+
set :file_permissions_paths, [
|
9
|
+
|
10
|
+
]
|
11
|
+
set :file_permissions_users, [fetch(:cake_server_user)]
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/migrations.rake", __FILE__)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require "capistrano/composer"
|
2
|
+
require "capistrano/file-permissions"
|
3
|
+
require "capistrano/cake/console"
|
4
|
+
require "capistrano/cake/cake"
|
5
|
+
# require "capistrano/cake/migrations"
|
6
|
+
|
7
|
+
namespace :load do
|
8
|
+
task :defaults do
|
9
|
+
load 'capistrano/cake/defaults.rb'
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
namespace :cake do
|
2
|
+
desc "Execute a provided cake command"
|
3
|
+
task :console, :command_name do |t, args|
|
4
|
+
# ask only runs if argument is not provided
|
5
|
+
ask(:cmd, "list")
|
6
|
+
command = args[:command_name] || fetch(:cmd)
|
7
|
+
|
8
|
+
on roles fetch(:cake_roles) do
|
9
|
+
within release_path do
|
10
|
+
execute :php, :console, command, *args.extras, fetch(:cake_console_flags)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-cake
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua F. Rountree
|
8
|
+
- Justin Slamka
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-03-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: capistrano
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '3.0'
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.0.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.0'
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: capistrano-composer
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.0'
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.0.3
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ~>
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.0'
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.0.3
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: capistrano-file-permissions
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: bundler
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.3'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.3'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rake
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
description: CakePHP deployment for Capistrano 3.x
|
97
|
+
email:
|
98
|
+
- joshua@swodev.com
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- Gemfile
|
104
|
+
- LICENSE
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
107
|
+
- capistrano-cake.gemspec
|
108
|
+
- lib/capistrano-cake.rb
|
109
|
+
- lib/capistrano/cake.rb
|
110
|
+
- lib/capistrano/cake/cake.rb
|
111
|
+
- lib/capistrano/cake/console.rb
|
112
|
+
- lib/capistrano/cake/defaults.rb
|
113
|
+
- lib/capistrano/cake/migrations.rb
|
114
|
+
- lib/capistrano/tasks/cake.rake
|
115
|
+
- lib/capistrano/tasks/console.rake
|
116
|
+
- lib/capistrano/tasks/migrations.rake
|
117
|
+
homepage: https://github.com/joshuairl/capistrano-cake
|
118
|
+
licenses:
|
119
|
+
- MIT
|
120
|
+
metadata: {}
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.2.2
|
138
|
+
signing_key:
|
139
|
+
specification_version: 4
|
140
|
+
summary: Deploy your CakePHP apps with Capistrano 3!
|
141
|
+
test_files: []
|