Module: Capistrano::Magento2::Setup

Defined in:
lib/capistrano/magento2.rb

Instance Method Summary collapse

Instance Method Details

#deployed_versionObject



33
34
35
36
37
38
39
40
# File 'lib/capistrano/magento2.rb', line 33

def deployed_version
  # Generate a static content version string, but only if one has not already been set on a previous call
  if not fetch(:magento_static_deployed_version)
    set :magento_static_deployed_version, DateTime.now.strftime("%s")
    info "Static content version: #{fetch(:magento_static_deployed_version)}"
  end
  return fetch(:magento_static_deployed_version)
end