Module: Capistrano::Magento2::Helpers
- Defined in:
- lib/capistrano/magento2.rb
Instance Method Summary collapse
Instance Method Details
#cache_hosts ⇒ Object
31 32 33 |
# File 'lib/capistrano/magento2.rb', line 31 def cache_hosts return fetch(:magento_deploy_cache_shared) ? (primary fetch :magento_deploy_setup_role) : (release_roles :all) end |
#disabled_modules ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/capistrano/magento2.rb', line 21 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 |
#magento_version ⇒ Object
17 18 19 |
# File 'lib/capistrano/magento2.rb', line 17 def magento_version return Gem::Version::new((capture :php, "-f #{release_path}/bin/magento -- -V --no-ansi").split(' ').pop) end |