Class: Refinery::S3assets::Util
- Inherits:
-
Object
- Object
- Refinery::S3assets::Util
- Defined in:
- lib/refinerycms-s3assets.rb
Class Method Summary collapse
Class Method Details
.pull ⇒ Object
15 16 17 18 19 |
# File 'lib/refinerycms-s3assets.rb', line 15 def self.pull verify_s3_configuration copy_from_s3_bucket(Image, :image_uid, s3_config[:bucket], File.join(base_path, "images")) copy_from_s3_bucket(Resource, :file_uid, s3_config[:bucket], File.join(base_path, "resources")) end |
.push ⇒ Object
21 22 23 24 25 26 |
# File 'lib/refinerycms-s3assets.rb', line 21 def self.push verify_s3_configuration base_path = "public/system/refinery" copy_to_s3_bucket(Image, :image_uid, s3_config[:bucket], File.join(base_path, "images")) copy_to_s3_bucket(Resource, :file_uid, s3_config[:bucket], File.join(base_path, "resources")) end |