module Capistrano::Magento2::Setup

Public Instance Methods

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