Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

Commit

Permalink
HACK: Adding webpacker folder
Browse files Browse the repository at this point in the history
- Hard coded 'path'
- Lacks tests
- USE AT OWN RISK
  • Loading branch information
nitsujri committed Oct 14, 2019
1 parent 5ff527c commit c5f1f4f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/asset_sync/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ def get_remote_files
# (work-around for https://github.com/fog/fog/issues/596)
files = []
bucket.files.each { |f| files << f.key }
return files + get_remote_webpacker_files
end

# HACK WARNING: Only manually tested for specific usecase.
# Use at own risk.
# Only storage.rb:118 was changed for this.
def get_remote_webpacker_files
files = []
webpacker_prefix = connection.directories.get(self.config.fog_directory, prefix: 'packs/')
webpacker_prefix.files.each { |f| files << f.key }
return files
end

Expand Down

0 comments on commit c5f1f4f

Please sign in to comment.