Sha256: 3b3abaf3cf1d0a8201c4b8e969f526ccf81247273fe6b4c21799deebd966690d
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require 'relish/core_ext' module Relish class << self def self.setting(name, value) attr_writer name class_eval %{ def #{name} # def global_options_file @#{name.to_s} ||= # @global_options_file ||= ENV['RELISH_#{name.to_s.upcase}'] || # ENV['RELISH_GLOBAL_OPTIONS_FILE'] || '#{value}' # '~/.relish' end # end } end setting :global_options_file, File.join(File.expand_path('~'), '.relish') setting :local_options_file, '.relish' setting :default_host, 'relishapp.com' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relish-0.1.0 | lib/relish.rb |