Sha256: d117032303587fc511e671b2883e3f5afad7543112e048e6dfa55ed357139cf6

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

module Florby
  class Config
    def initialize
      @options = {}
    end

    def load_file(path)
      instance_eval(File.read(File.join(Dir.pwd, path)))
    end

    def fetch(key)
      @options.fetch(key)
    end

    def copy_from(path)
      @options['copy_from'] ||= []
      @options['copy_from'] << path
    end

    def copy_files
      @options['copy_from'] ||= []
    end

    def host(url)
      @options['host'] = url
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
florby-0.1.0 lib/florby/config.rb