Module: Relish
- Defined in:
- lib/relish.rb,
lib/relish/ui.rb,
lib/relish/command.rb,
lib/relish/helpers.rb,
lib/relish/version.rb,
lib/relish/commands/dsl.rb,
lib/relish/options_file.rb,
lib/relish/commands/base.rb,
lib/relish/commands/help.rb,
lib/relish/commands/push.rb,
lib/relish/param_methods.rb,
lib/relish/error_messages.rb,
lib/relish/commands/collab.rb,
lib/relish/commands/config.rb,
lib/relish/resource_methods.rb,
lib/relish/commands/projects.rb,
lib/relish/commands/versions.rb,
lib/relish/commands/dsl/option.rb,
lib/relish/commands/dsl/command.rb,
lib/relish/commands/dsl/help_text.rb,
lib/relish/commands/dsl/context_class.rb
Defined Under Namespace
Modules: Command, ErrorMessages, Helpers, ResourceMethods, Version Classes: OptionsFile, Ui
Class Method Summary collapse
Class Method Details
.setting(name, value) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/relish.rb', line 6 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 |