Class: S3AssetDeploy::LocalAssetCollector
- Inherits:
-
Object
- Object
- S3AssetDeploy::LocalAssetCollector
- Defined in:
- lib/s3_asset_deploy/local_asset_collector.rb
Direct Known Subclasses
Instance Method Summary collapse
- #asset_map ⇒ Object
- #asset_paths ⇒ Object
- #assets ⇒ Object
- #full_file_path(asset_path) ⇒ Object
-
#initialize(remove_fingerprint: nil) ⇒ LocalAssetCollector
constructor
A new instance of LocalAssetCollector.
- #original_asset_paths ⇒ Object
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_map ⇒ Object
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_paths ⇒ Object
12 13 14 |
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 12 def asset_paths assets.map(&:path) end |
#assets ⇒ Object
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_paths ⇒ Object
22 23 24 |
# File 'lib/s3_asset_deploy/local_asset_collector.rb', line 22 def original_asset_paths assets.map(&:original_path) end |