Class: S3AssetDeploy::LocalAssetCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/s3_asset_deploy/local_asset_collector.rb

Direct Known Subclasses

RailsLocalAssetCollector

Instance Method Summary collapse

Constructor Details

#initialize(remove_fingerprint: nil) ⇒ LocalAssetCollector

Returns a new instance of LocalAssetCollector.



4
5
6
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 4

def initialize(remove_fingerprint: nil)
  @remove_fingerprint = remove_fingerprint
end

Instance Method Details

#asset_mapObject



16
17
18
19
20
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 16

def asset_map
  assets.map do |asset|
    [asset.original_path, asset]
  end.to_h
end

#asset_pathsObject



12
13
14
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 12

def asset_paths
  assets.map(&:path)
end

#assetsObject



8
9
10
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 8

def assets
  []
end

#full_file_path(asset_path) ⇒ Object



26
27
28
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 26

def full_file_path(asset_path)
  asset_path
end

#original_asset_pathsObject



22
23
24
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 22

def original_asset_paths
  assets.map(&:original_path)
end