You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using asset_sync via middleman-sync, I found that no files are actually retrieved from the given bucket, so existing_remote_files = 'delete' flags no files for deletion.
Comparing lib/asset_sync/storage.rb with fog's delete_file.rb example, bucket.files should return 37 files in this container, but instead comes up empty in get_remote_files
I modified
% sed -n 98,107p ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb
defget_remote_filesraiseBucketNotFound.new("#{self.config.fog_provider} Bucket: #{self.config.fog_directory} not found.")unlessbucket# fixes: https://github.com/rumblelabs/asset_sync/issues/16# (work-around for https://github.com/fog/fog/issues/596)files=[]apbucketapbucket.filesbucket.files.each{ |f| files << f.key}returnfilesend
which shows that the Fog::Storage::Rackspace::Directory has 37 files (which it does), but ap bucket.files just prints the square brackets of an empty array.
% middleman sync
...snip...
Fetching files to flag for delete
<Fog::Storage::Rackspace::Directory
key="rstroxbucket",
bytes=2093842,
count=37,
cdn_cname=nil
>
[]
Flagging 0 file(s) for deletion
AssetSync: Done.
The text was updated successfully, but these errors were encountered:
Using asset_sync via middleman-sync, I found that no files are actually retrieved from the given bucket, so existing_remote_files = 'delete' flags no files for deletion.
Comparing lib/asset_sync/storage.rb with fog's delete_file.rb example, bucket.files should return 37 files in this container, but instead comes up empty in
get_remote_files
I modified
% sed -n 98,107p ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb
which shows that the Fog::Storage::Rackspace::Directory has 37 files (which it does), but
ap bucket.files
just prints the square brackets of an empty array.% middleman sync
The text was updated successfully, but these errors were encountered: