Module: Capistrano::Magento2::Helpers
- Defined in:
- lib/capistrano/magento2.rb
Instance Method Summary collapse
Instance Method Details
#cache_hosts ⇒ Object
27 28 29 |
# File 'lib/capistrano/magento2.rb', line 27 def cache_hosts return fetch(:magento_deploy_cache_shared) ? (primary fetch :magento_deploy_setup_role) : (release_roles :all) end |
#disabled_modules ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/capistrano/magento2.rb', line 17 def disabled_modules output = capture :magento, 'module:status --no-ansi' output = output.split("disabled modules:\n", 2)[1] if output == nil or output.strip == "None" return [] end return output.split("\n") end |