Sha256: 0a51e33da9afa7174835a5a697c92aa212a2c301b53555165679b963b495d5b0

Contents?: true

Size: 485 Bytes

Versions: 15

Compression:

Stored size: 485 Bytes

Contents

module Lono::Template::Strategy::Dsl::Builder::Helpers
  module S3Helper
    def s3_bucket
      Lono::S3::Bucket.name
    end
    alias_method :lono_bucket_name, :s3_bucket

    def s3_key(name, options={})
      default = {type: "file"}
      options.reverse_merge!(default)
      Lono::AppFile::Registry.register(name, @blueprint, options)
      "file://app/files/#{options[:type]}/#{name}" # placeholder for post processing
    end
    alias_method :file_s3_key, :s3_key
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.5.1 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.5.0 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.11 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.10 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.9 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.8 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.7 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.6 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.5 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.4 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.3 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.2 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.1 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb
lono-7.4.0 lib/lono/template/strategy/dsl/builder/helpers/s3_helper.rb