capistrano-magento2 0.2.4 → 0.3.0

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
  SHA1:
3
- metadata.gz: 4d33fbaa9e874dfb8dad08bb1f0351e6ce42ef6f
4
- data.tar.gz: 401ce96eabbc57ea5d82b428d950833fbd7490cf
3
+ metadata.gz: 481fdaea28179deaba14faf4fc32faf31c242dd3
4
+ data.tar.gz: 3e1652dabf3cf81c1129a135dc1bff02ecb6ba66
5
5
  SHA512:
6
- metadata.gz: fa27e96db8696820d9d63d544a1500222f1d24e73a200a3e8d5948be8c5f4227188c943e25015514c7ca918bf30c68741ebb97e401436e74e303a65f15ebee7c
7
- data.tar.gz: dc73dd16e09abd4021b2cf2434d4505b8b33cdcf22ab9342862d247a1d15591fdc431310bad8054db704b02a8828de9704e59a01616eec11e2e256460b276e41
6
+ metadata.gz: 767336b3783b537c4698cd458bb58222f727cd35c9228cfbc3d1722bc5caecdc083742946a4c3d545dd7998daa2f374d83832cdb4ddc52aaa78062e0953b9a0d
7
+ data.tar.gz: 52794a258d96c8c79c13f1245fe747d75dd18826fe3ff43a9d8d2d2ffd06c9e98385725a6777508bcff06ad72d913bbd37729a89a971425d8d96a2b14a7cc90d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Capistrano::Magento2 Change Log
2
2
 
3
+ 0.3.0
4
+ ==========
5
+
6
+ * Added `:magento_deploy_production` flag to disable production deploy commands (PR #10 by @giacmir).
7
+ * Added `:magento_deploy_languages` setting to support passing language list to static content generator (PR #11 by @giacmir).
8
+
3
9
  0.2.4
4
10
  ==========
5
11
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Capistrano
11
11
  module Magento2
12
- VERSION = '0.2.4'
12
+ VERSION = '0.3.0'
13
13
  end
14
14
  end
@@ -15,8 +15,10 @@ namespace :deploy do
15
15
  invoke 'magento:deploy:verify'
16
16
  invoke 'magento:composer:install'
17
17
  invoke 'magento:setup:permissions'
18
- invoke 'magento:setup:static-content:deploy'
19
- invoke 'magento:setup:di:compile'
18
+ if fetch(:magento_deploy_production)
19
+ invoke 'magento:setup:static-content:deploy'
20
+ invoke 'magento:setup:di:compile'
21
+ end
20
22
  invoke 'magento:setup:permissions'
21
23
  if test '-d #{current_path}'
22
24
  within current_path do
@@ -170,10 +170,14 @@ namespace :magento do
170
170
  desc 'Deploys static view files'
171
171
  task :deploy do
172
172
  on release_roles :all do
173
+ deploy_languages = fetch(:magento_deploy_languages).join(' ')
173
174
  within release_path do
174
175
  # TODO: Remove custom error detection logic once magento/magento2#3060 is resolved
175
176
  # Currently the cli tool is not reporting failures via the exit code, so manual detection is neccesary
176
- output = capture :magento, 'setup:static-content:deploy | stdbuf -o0 tr -d .', verbosity: Logger::INFO
177
+ output = capture :magento,
178
+ "setup:static-content:deploy #{deploy_languages}| stdbuf -o0 tr -d .",
179
+ verbosity: Logger::INFO
180
+
177
181
  if not output.to_s.include? 'New version of deployed files'
178
182
  raise Exception, 'Failed to compile static assets'
179
183
  end
@@ -299,5 +303,8 @@ namespace :load do
299
303
  'var/session',
300
304
  'var/tmp'
301
305
  )
306
+
307
+ set :magento_deploy_production, fetch(:magento_deploy_production, true) # TODO: Document deploy mode setting
308
+ set :magento_deploy_languages, fetch(:magento_deploy_languages, []) # TODO: Document deploy lang setting
302
309
  end
303
310
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano