Sha256: 072ebaa3144c5d3594cd669796ab4d6fe471636ee4447b9225f39fc26440cd6a
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
require 'relish/version' 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') rescue '~/.relish') setting :local_options_file, '.relish' setting :default_host, 'api.relishapp.com' setting :default_ssl, 'on' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
relish-0.7.1 | lib/relish.rb |
relish-0.7 | lib/relish.rb |
relish-0.6 | lib/relish.rb |
relish-0.5.3 | lib/relish.rb |