Sha256: fe21154446812ae43a5755c4e643ca0b772db2a0640e8f335a39bb8ef7c10bb0

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 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.name, configset: @configset, root: @root)
      "file://configset/#{@configset}/#{name}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc2 lib/lono/configset/strategy/helpers/dsl/core.rb
lono-8.0.0.pre.rc1 lib/lono/configset/strategy/helpers/dsl/core.rb