Sha256: fdebe19e1b64ae31c4c4d77bf4506d92e5f3af091f72eb15cd4e1c054d7bf4c7

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

module Lono
  class Configset < Component
    attr_reader :resource
    attr_accessor :metadata
    def initialize(options={})
      super
      @resource = options[:resource]
    end

    def path
      return unless root
      exts = %w[rb yml json] # rb highest precedence
      paths = exts.map { |ext| "#{root}/configset.#{ext}" }
      paths.find { |p| File.exist?(p) }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/configset.rb
lono-8.0.0.pre.rc5 lib/lono/configset.rb
lono-8.0.0.pre.rc4 lib/lono/configset.rb
lono-8.0.0.pre.rc3 lib/lono/configset.rb