capistrano-magepack 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d15f09165e2008a56e027782d28b62c958374f40565a00e1cf3b46331d48d8d
4
- data.tar.gz: 9962f27df3a503868bc240d3ed81816b249dc293c23e31f093bd9a1227fa759b
3
+ metadata.gz: f7a3c53662166310fe50cd6654810c104041ff4b6df6633b265289ac9f8f29c7
4
+ data.tar.gz: 3c4d05479ab29dc660d3f1a59fdc7abf6464510be99a36088a17b743296c3885
5
5
  SHA512:
6
- metadata.gz: 648ad505b8e3aa29600c61c4fa6024ffa7bdb1ccdb6083c7bf06261013b4d3773d334da96120133a901fb40bb70d47ac0456996216e06ff45351b7062cd788a9
7
- data.tar.gz: 1edefe501179597d799a57a46b22f64bef603d80492d66785d2e367aa4a08029e6510a27e36a2c6e1f33eec3337476a38665c41bf26e6b05fbb3b4c5ad3e2a3e
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-theme-uploader'
9
+ gem 'capistrano-magepack'
10
10
  ```
11
11
 
12
12
  ```ruby
13
13
  #add this line in your Capfile
14
- require 'capistrano/capistrano-theme-uploader'
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:updating', 'wp-capistrano:upload_theme'
36
+ after 'deploy:published', 'capistrano-magepack:bundle_js'
37
37
  ```
@@ -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.5'
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:published', 'capistrano-magepack:bundle_js'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magepack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT