capistrano-magepack 0.0.3 → 0.0.7

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: f5ce80341a0db44614ddc27696801ad840b304c9d3bb0419b15f885c63f1811f
4
- data.tar.gz: 975772a908d946099d41da515213ec62b989f59207d729e2809d6716199d2ce3
3
+ metadata.gz: 61d5788b081732636dc9665cdf05710d3374527a8824eca668cb4b5c4ff8ead3
4
+ data.tar.gz: 1eca84b349543cc38ba9062e587a9281d6342d38da34e634aa3670b4b2a9e68d
5
5
  SHA512:
6
- metadata.gz: 6328923e9b536b048a792b6acf80f8b40abece9d6c716e5e8777e5034868a72b74d25fdcdf8761d31a9b2c9de910b79ca06a769d4384ee00ce2739bf2d7c4df7
7
- data.tar.gz: 4a55f5dfb149a7a9e713e7f5f906c8d0710d2892f8ce225cd268d2cdf6c4f3f30329784d4f95b78a2b7c87614ec320f48c210d8546ff33ed6e1f2243bf5ffce9
6
+ metadata.gz: d8ed4c341c345161494ffa3a3d87a1f13d707cfc7b9a248455cf93b475d1c89ce408bf52152dc57809dacde3ad19255d8bb460d1c6d2320913ff5f366a7f92b7
7
+ data.tar.gz: 858019767d9fb351c4661b01b574e50c02e441db05a3405f169b049df1b011f7ee51574eac16232258199623cda65b7679878b62c96c45929eebd606d269f111
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.3'
7
+ spec.version = '0.0.7'
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,11 +2,15 @@ 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
- info 'magepack generate --cms-url="#{ENV['HOME_URL']}" --category-url="#{ENV['CATEGORY_URL']}" --product-url="#{ENV['PRODUCT_URL']}"'
7
- execute 'magepack generate --cms-url="#{ENV['HOME_URL']}" --category-url="#{ENV['CATEGORY_URL']}" --product-url="#{ENV['PRODUCT_URL']}"'
8
- execute 'magepack bundle'
9
- end
5
+ home_url = ENV['HOME_URL']
6
+ product_url = ENV['PRODUCT_URL']
7
+ category_url = ENV['CATEGORY_URL']
8
+ waiting_time = ENV['WAITING_TIME']
9
+ info "Wait #{waiting_time} seconds"
10
+ execute "sleep #{waiting_time}"
11
+ info "magepack generate --cms-url='#{home_url}' --category-url='#{category_url}' --product-url='#{product_url}'"
12
+ execute "cd '#{release_path}'; magepack generate --cms-url='#{home_url}' --category-url='#{category_url}' --product-url='#{product_url}'"
13
+ execute "cd '#{release_path}'; magepack bundle"
10
14
  end
11
15
  end
12
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magepack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano