capistrano-magepack 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +3 -3
- data/capistrano-magepack.gemspec +1 -1
- data/lib/capistrano/capistrano-magepack/defaults.rb +1 -1
- data/lib/capistrano/tasks/bundle_js.rake +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7a3c53662166310fe50cd6654810c104041ff4b6df6633b265289ac9f8f29c7
|
4
|
+
data.tar.gz: 3c4d05479ab29dc660d3f1a59fdc7abf6464510be99a36088a17b743296c3885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb91f8c685b3c8e62830a134c9553bc0a438b95ad31c3a0aff29e90d16b7c802dc5a6542bff14e0bc099c1e655ff80268fb7889149d657fc617f61dae3fb6a0
|
7
|
+
data.tar.gz: 78a2524e6e7a881d970ba81aff121a0d092779876785439a19ba847c8a25eecbf2ef05e22504140073a5ca52ffc370ff51cfa9c09d295dbc0a254bb7f376249d
|
data/README.md
CHANGED
@@ -6,12 +6,12 @@ Capistrano tasks used to deploy theme.
|
|
6
6
|
|
7
7
|
```ruby
|
8
8
|
#add this line in your Gemfile
|
9
|
-
gem 'capistrano-
|
9
|
+
gem 'capistrano-magepack'
|
10
10
|
```
|
11
11
|
|
12
12
|
```ruby
|
13
13
|
#add this line in your Capfile
|
14
|
-
require 'capistrano/capistrano-
|
14
|
+
require 'capistrano/capistrano-magepack'
|
15
15
|
```
|
16
16
|
Then run
|
17
17
|
```shell
|
@@ -33,5 +33,5 @@ set :themes_to_deploy, [
|
|
33
33
|
The default capistrano workflow is used with the addition of theses tasks.
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
after 'deploy:
|
36
|
+
after 'deploy:published', 'capistrano-magepack:bundle_js'
|
37
37
|
```
|
data/capistrano-magepack.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-magepack'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.6'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Magepack tasks for Capistrano 3.x}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# Default Flow
|
2
|
-
after 'deploy:
|
2
|
+
after 'deploy:finished', 'capistrano-magepack:bundle_js'
|
@@ -2,14 +2,12 @@ namespace "capistrano-magepack" do
|
|
2
2
|
desc 'bundle js files'
|
3
3
|
task :bundle_js do
|
4
4
|
on roles(:app) do
|
5
|
-
within release_path do
|
6
5
|
home_url = ENV['HOME_URL']
|
7
6
|
product_url = ENV['PRODUCT_URL']
|
8
7
|
category_url = ENV['CATEGORY_URL']
|
9
8
|
info "magepack generate --cms-url='#{home_url}' --category-url='#{category_url}' --product-url='#{product_url}'"
|
10
|
-
execute 'magepack generate --cms-url='#{home_url}' --category-url='#{category_url}' --product-url='#{product_url}'
|
11
|
-
execute 'magepack bundle
|
12
|
-
end
|
9
|
+
execute "cd '#{release_path}'; magepack generate --cms-url='#{home_url}' --category-url='#{category_url}' --product-url='#{product_url}'"
|
10
|
+
execute "cd '#{release_path}'; magepack bundle"
|
13
11
|
end
|
14
12
|
end
|
15
13
|
end
|