Sha256: 457080e0fb4911e31680669d717b6da77bac66a35f727e0577af09cca0fc621b

Contents?: true

Size: 484 Bytes

Versions: 15

Compression:

Stored size: 484 Bytes

Contents

module Lono::Configset::Strategy::Helpers::Dsl
  module Core
    def content_file(path)
      content_path = "#{@root}/lib/content"
      file = "#{content_path}/#{path}"
      if File.exist?(file)
        IO.read(file)
      else
        "File not found: #{file}"
      end
    end

    def s3_key(name)
      Lono::Configset::S3File::Registry.register(name, blueprint: @blueprint, configset: @configset, root: @root)
      "file://configset/#{@configset}/#{name}"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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