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:, ignore_paths:) ⇒ Deployer
constructor
A new instance of Deployer.
- #run ⇒ Object
Constructor Details
#initialize(storage:, root_path:, prefix_paths:, ignore_paths:) ⇒ Deployer
Returns a new instance of Deployer.
5 6 7 8 9 10 |
# File 'lib/s3_assets_deployer/deployer.rb', line 5 def initialize(storage:, root_path:, prefix_paths:, ignore_paths:) @storage = storage @root_path = root_path @prefix_paths = prefix_paths @ignore_paths = ignore_paths.map { |path| File.join(root_path, path) } end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'lib/s3_assets_deployer/deployer.rb', line 12 def run @storage.upload(files) end |