Sha256: be104223e0e94a3e8bc459a72153ac2735150ace1daeb5b0eb82165585e57d23

Contents?: true

Size: 461 Bytes

Versions: 15

Compression:

Stored size: 461 Bytes

Contents

module Lono
  class FileUploader < AbstractBase
    extend Memoist

    def initialize(options={})
      super
      @checksums = {}
      @prefix = "#{Lono.env}/#{blueprint}/files" # s3://s3-bucket/folder/development/files
    end

    def upload_all
      puts "Uploading app/files.."
      load_checksums!

      Dir.glob(pattern).each do |path|
        next if ::File.directory?(path)
        Lono::S3::Uploader.new(path).upload
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/file_uploader.rb
lono-7.5.1 lib/lono/file_uploader.rb
lono-7.5.0 lib/lono/file_uploader.rb
lono-7.4.11 lib/lono/file_uploader.rb
lono-7.4.10 lib/lono/file_uploader.rb
lono-7.4.9 lib/lono/file_uploader.rb
lono-7.4.8 lib/lono/file_uploader.rb
lono-7.4.7 lib/lono/file_uploader.rb
lono-7.4.6 lib/lono/file_uploader.rb
lono-7.4.5 lib/lono/file_uploader.rb
lono-7.4.4 lib/lono/file_uploader.rb
lono-7.4.3 lib/lono/file_uploader.rb
lono-7.4.2 lib/lono/file_uploader.rb
lono-7.4.1 lib/lono/file_uploader.rb
lono-7.4.0 lib/lono/file_uploader.rb