Class: S3AssetsDeployer::Deployer
- Inherits:
-
Object
- Object
- S3AssetsDeployer::Deployer
- Defined in:
- lib/s3_assets_deployer/deployer.rb
Instance Method Summary collapse
-
#initialize(storage:, root_path:, prefix_paths:) ⇒ Deployer
constructor
A new instance of Deployer.
- #run ⇒ Object
Constructor Details
#initialize(storage:, root_path:, prefix_paths:) ⇒ Deployer
Returns a new instance of Deployer.
5 6 7 8 9 |
# File 'lib/s3_assets_deployer/deployer.rb', line 5 def initialize(storage:, root_path:, prefix_paths:) @storage = storage @root_path = root_path @prefix_paths = prefix_paths end |
Instance Method Details
#run ⇒ Object
11 12 13 |
# File 'lib/s3_assets_deployer/deployer.rb', line 11 def run @storage.upload(files) end |