module Capistrano::Magento2::Helpers

Public Instance Methods

cache_hosts() click to toggle source
# 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() click to toggle source
# 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