capistrano-magepack 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano-magepack.gemspec +1 -1
- data/lib/capistrano/tasks/bundle_js.rake +5 -2
- 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: b4bee4aac534afed05f79e37c07521cfdb84fd3e4fe7993944e2ec056d19ac0f
|
4
|
+
data.tar.gz: 9beef37354d3d1f7a6b71b2f2892379cd33e6cc3c6f2f552ba1355190b777253
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6a5202bed0054272dec61247c6710af2e131be33fd8453ddaf488a3ec78c5c1e77e25039fa8b8f567883f33db352e30d830cf10777afece611c0ee3cac46e8
|
7
|
+
data.tar.gz: 84ab0c59c472c26d6aa467d9e4010003881ebd90d9fcbad2ef3c7a8d52896e16199e97eef005b6b685676f4d8368192179b5d6990a555afdf176024ec588b4c2
|
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.4'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Magepack tasks for Capistrano 3.x}
|
@@ -3,8 +3,11 @@ namespace "capistrano-magepack" do
|
|
3
3
|
task :bundle_js do
|
4
4
|
on roles(:app) do
|
5
5
|
within release_path do
|
6
|
-
|
7
|
-
|
6
|
+
home_url = ENV['HOME_URL']
|
7
|
+
product_url = ENV['PRODUCT_URL']
|
8
|
+
category_url = ENV['CATEGORY_URL']
|
9
|
+
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}'
|
8
11
|
execute 'magepack bundle'
|
9
12
|
end
|
10
13
|
end
|