capistrano-cake 0.0.2 → 0.0.4

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWNlNTMwNDk5M2EwMjUxMDU4YjdlZWI4ZTdhN2IzZTBhNWQzYzczNA==
4
+ ZWUzMGI0OWNkMTA4NmQ1MjhlNDQ0NWMzNGM1MjQ5ZWE1MTgxMDM0ZQ==
5
5
  data.tar.gz: !binary |-
6
- MjJhNGNjNTI2MDYyYzBiNjNkMzg5OGMyZDc1OThhZmJlYzdmNmM4OQ==
6
+ YjdlYzc2MDMwYzViYzA0YmUzYzRmMDBiNjEzYjBiNGEzNzNhYTJhNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2VlOWRkOTU4M2M1OWE1OWIwZjk1MTVjODY0MzUwZDNhODVjMjBkOGU5YTNh
10
- N2MxZDA1NGVmNjAxYjUzNzYwYWZjYTRiNzI0NjgzOWE4ZDJiZTMzMzBhODU1
11
- Yzc3NGNjMzMxY2MwNTNjZTlhYzZkZjUyNmM4YzViNjk2OGU4NmU=
9
+ ODc1MTYxNGIzYzI5ZDkzZDVkODg3MjdmNjZmMmIyNDlmN2ExMzk0MmYxNmMx
10
+ NGQwNWFkMmUyY2FlZWExNzU4ZjcxMWMyYmQxM2U1NWY0ZDczZWU2M2I5OTUw
11
+ MGI1ZWNkNGVhMWZmOGI5NTE3YzdjMzNkNTkwZjU2OTUyMDgyYTQ=
12
12
  data.tar.gz: !binary |-
13
- ZTAxNmJlMTU4MzkwNmI4Y2MyMTdiYmMwODRlYmFlNWVkYmFhYTYyMmU3NjE0
14
- ZDA2OGU1YzY2MjJiYjZhZGI2YzEyYjlmMjQ1MWJjZDYwZWJiMDVmMzRhYjYx
15
- YmNmMmIzMjkwNWI1Mzg0MThlYjVhZTFjOWMzZWQ0ZDExNTg4YTk=
13
+ MjBkZWNmOTQ5YmJlNWU4NWRmNzJhNDJlN2ZlYjk0MzU5NjI3NDVjM2M1M2Rm
14
+ YWNkZjFiYWU0Zjk1MTE5NmFiNWQ5OTVmZDEyYTNiNTExM2ZjMWQ1NGNlMDhl
15
+ ZmI4Yzg4OGRjOGExYTBmZGEyOTljODhjNGQ1ZDg4MDk3NjI5OTM=
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
@@ -4,23 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-cake'
7
- spec.version = '0.0.2'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ['Joshua F. Rountree', 'Justin Slamka']
9
9
  spec.email = ['joshua@swodev.com']
10
10
  spec.description = %q{CakePHP deployment for Capistrano 3.x}
11
11
  spec.summary = %q{Deploy your CakePHP apps with Capistrano 3!}
12
12
  spec.homepage = 'https://github.com/joshuairl/capistrano-cake'
13
13
  spec.license = 'MIT'
14
-
15
14
  spec.files = `git ls-files`.split($/)
16
15
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
17
  spec.require_paths = ['lib']
19
18
 
20
19
  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
-
20
+
24
21
  spec.add_development_dependency 'bundler', '~> 1.3'
25
22
  spec.add_development_dependency 'rake', '~> 0'
26
23
  end
@@ -0,0 +1 @@
1
+ load File.expand_path("../../tasks/composer.rake", __FILE__)
@@ -1,11 +1,6 @@
1
1
  set :cake_roles, :all
2
2
  set :cake_console_flags, "--env production"
3
- set :cake_server_user, "www-data"
4
3
 
5
- # fix bug in capistrano-file-permissions
6
- set :linked_dirs, []
4
+ SSHKit.config.command_map[:cake] = "app/Console/cake"
7
5
 
8
- set :file_permissions_paths, [
9
-
10
- ]
11
- set :file_permissions_users, [fetch(:cake_server_user)]
6
+ set :linked_dirs, []
@@ -1,8 +1,6 @@
1
- require "capistrano/composer"
2
- require "capistrano/file-permissions"
3
- require "capistrano/cake/console"
1
+ require "capistrano/cake/composer"
2
+ require "capistrano/cake/migrations"
4
3
  require "capistrano/cake/cake"
5
- # require "capistrano/cake/migrations"
6
4
 
7
5
  namespace :load do
8
6
  task :defaults do
@@ -1,3 +1,3 @@
1
1
  namespace :deploy do
2
- after :updated, 'deploy:set_permissions:acl'
3
- end
2
+
3
+ end
@@ -0,0 +1,9 @@
1
+ namespace :deploy do
2
+ task :composer_install do
3
+ on roles(:all) do
4
+ within release_path do
5
+ execute :cake, "composer.c install -y"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,7 +1,9 @@
1
1
  namespace :deploy do
2
2
  task :migrate do
3
- within release_path do
4
- invoke "cake:console", "Migrations.migration run"
3
+ on roles(:all) do
4
+ within release_path do
5
+ execute :cake, 'Migrations.migration run all'
6
+ end
5
7
  end
6
8
  end
7
- end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua F. Rountree
@@ -31,40 +31,6 @@ dependencies:
31
31
  - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
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
34
  - !ruby/object:Gem::Dependency
69
35
  name: bundler
70
36
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +66,7 @@ executables: []
100
66
  extensions: []
101
67
  extra_rdoc_files: []
102
68
  files:
69
+ - .gitignore
103
70
  - Gemfile
104
71
  - LICENSE
105
72
  - README.md
@@ -108,11 +75,11 @@ files:
108
75
  - lib/capistrano-cake.rb
109
76
  - lib/capistrano/cake.rb
110
77
  - lib/capistrano/cake/cake.rb
111
- - lib/capistrano/cake/console.rb
78
+ - lib/capistrano/cake/composer.rb
112
79
  - lib/capistrano/cake/defaults.rb
113
80
  - lib/capistrano/cake/migrations.rb
114
81
  - lib/capistrano/tasks/cake.rake
115
- - lib/capistrano/tasks/console.rake
82
+ - lib/capistrano/tasks/composer.rake
116
83
  - lib/capistrano/tasks/migrations.rake
117
84
  homepage: https://github.com/joshuairl/capistrano-cake
118
85
  licenses:
@@ -1 +0,0 @@
1
- load File.expand_path("../../tasks/console.rake", __FILE__)
@@ -1,14 +0,0 @@
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 :cake, command, *args.extras, fetch(:cake_console_flags)
11
- end
12
- end
13
- end
14
- end