capistrano-victoire 0.0.2
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 +7 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/LICENCE +20 -0
- data/README.md +15 -0
- data/Rakefile +1 -0
- data/capistrano-victoire.gemspec +24 -0
- data/lib/capistrano/tasks/assets.rake +38 -0
- data/lib/capistrano/tasks/viewReference.rake +10 -0
- data/lib/capistrano/tasks/widget.rake +10 -0
- data/lib/capistrano/victoire/defaults.rb +6 -0
- data/lib/capistrano/victoire.rb +9 -0
- data/lib/capistrano-victoire.rb +0 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 68cec3d9ba9c3604e16ffbc7fc7a0d62fe9aaae7
|
4
|
+
data.tar.gz: e7cf3ee026cb66c23f5a4cee6301ed28c2a50675
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 84d081107e56786ce0f30f3014cdf05c098929983e44de1153e31011b2b2e85e576fe566776282b845f8ee85bac30e191f5d877fb60c648a623045da33027e7d
|
7
|
+
data.tar.gz: 91059d736433805682609a20f2de835af06e61615a7790692fd6d8640070c022b0ae29e29810661f5ad746f467959aec1c999bf7025be09b5875dffe1602d680
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENCE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Troopers
|
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,15 @@
|
|
1
|
+
# capistrano-victoire
|
2
|
+
|
3
|
+
Capistrano tasks used to deploy Victoire based projects.
|
4
|
+
|
5
|
+
## Workflow
|
6
|
+
|
7
|
+
The default capistrano workflow is used with the addition of theses tasks.
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
after 'symfony:assets:install', 'victoire:assets:fetch'
|
11
|
+
after 'deploy:updated', 'victoire:viewReference:generate'
|
12
|
+
after 'deploy:updated', 'bazinga:js-translation:dump'
|
13
|
+
after 'deploy:updated', 'fos:js-routing:dump'
|
14
|
+
after 'deploy:updated', 'victoire:widget:generateCss'
|
15
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,24 @@
|
|
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-victoire'
|
7
|
+
spec.version = '0.0.2'
|
8
|
+
spec.authors = ['Leny Bernard']
|
9
|
+
spec.email = ['erwan@victoire.com']
|
10
|
+
spec.description = %q{Victoire tasks for Capistrano 3.x}
|
11
|
+
spec.summary = %q{Victoire tasks for Capistrano 3.x}
|
12
|
+
spec.homepage = 'https://github.com/victoire/capistrano-victoire'
|
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_dependency 'capistrano', '>= 3.0.0.pre'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.1'
|
24
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
namespace :victoire do
|
2
|
+
namespace :assets do
|
3
|
+
desc <<-DESC
|
4
|
+
Fetch Assets
|
5
|
+
DESC
|
6
|
+
task :fetch do
|
7
|
+
on roles(:app) do
|
8
|
+
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod victoire:ui:fetchAssets"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
namespace :bazinga do
|
15
|
+
namespace :js-translation do
|
16
|
+
desc <<-DESC
|
17
|
+
Dumps all JS translation files to the filesystem
|
18
|
+
DESC
|
19
|
+
task :dump do
|
20
|
+
on roles(:app) do
|
21
|
+
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod bazinga:js:dump"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
namespace :fos do
|
28
|
+
namespace :js-routing do
|
29
|
+
desc <<-DESC
|
30
|
+
Dumps exposed routes to the filesystem
|
31
|
+
DESC
|
32
|
+
task :dump do
|
33
|
+
on roles(:app) do
|
34
|
+
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod fos:js-routing:dump --target=web/js/fos_js_routes_prod.js"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace :victoire do
|
2
|
+
namespace :widget do
|
3
|
+
desc "generate widget view's css"
|
4
|
+
task :generateCss do
|
5
|
+
on roles(:app) do
|
6
|
+
execute "cd #{release_path} && php " + fetch(:symfony_console_path) + " --env=prod victoire:widget-css:generate"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# Default Flow
|
2
|
+
after 'symfony:assets:install', 'victoire:assets:fetch'
|
3
|
+
after 'deploy:updated', 'victoire:viewReference:generate'
|
4
|
+
after 'deploy:updated', 'bazinga:js-translation:dump'
|
5
|
+
after 'deploy:updated', 'fos:js-routing:dump'
|
6
|
+
after 'deploy:updated', 'victoire:widget:generateCss'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
load File.expand_path("../tasks/assets.rake", __FILE__)
|
2
|
+
load File.expand_path("../tasks/viewReference.rake", __FILE__)
|
3
|
+
load File.expand_path("../tasks/widget.rake", __FILE__)
|
4
|
+
|
5
|
+
namespace :load do
|
6
|
+
task :defaults do
|
7
|
+
load "capistrano/victoire/defaults.rb"
|
8
|
+
end
|
9
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-victoire
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Leny Bernard
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-31 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: 3.0.0.pre
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0.pre
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.1'
|
55
|
+
description: Victoire tasks for Capistrano 3.x
|
56
|
+
email:
|
57
|
+
- erwan@victoire.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENCE
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- capistrano-victoire.gemspec
|
68
|
+
- lib/capistrano-victoire.rb
|
69
|
+
- lib/capistrano/tasks/assets.rake
|
70
|
+
- lib/capistrano/tasks/viewReference.rake
|
71
|
+
- lib/capistrano/tasks/widget.rake
|
72
|
+
- lib/capistrano/victoire.rb
|
73
|
+
- lib/capistrano/victoire/defaults.rb
|
74
|
+
homepage: https://github.com/victoire/capistrano-victoire
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.6.11
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Victoire tasks for Capistrano 3.x
|
98
|
+
test_files: []
|