Class: TpCommon::AssetLoaders::PackagePathProviders::Development

Inherits:
Production
  • Object
show all
Defined in:
lib/tp_common/asset_loaders/package_path_providers/development.rb

Instance Method Summary collapse

Methods inherited from Production

#initialize

Constructor Details

This class inherits a constructor from TpCommon::AssetLoaders::PackagePathProviders::Production

Instance Method Details

#asset_url(package_name, version, asset) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/tp_common/asset_loaders/package_path_providers/development.rb', line 7

def asset_url(package_name, version, asset)
  if !head("#{@dev_cdn}/#{package_name}/_ping")
    return super(package_name, version, asset)
  end

  "#{@dev_cdn}/#{package_name}/#{asset}"
end