Class: GossipCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/gossip/site-config.rb

Overview

CHANGE: add_sources if, for example, you want to override defaults using an XML file instead of a YAML file.

Instance Method Summary collapse

Instance Method Details

#add_sources(builder) ⇒ Object

Determine how the user can override defaults.



89
90
91
92
93
# File 'lib/gossip/site-config.rb', line 89

def add_sources(builder)
  builder.add_source(PosixCommandLineSource, :usage, *describe_all_but_options)
  builder.add_source(YamlConfigFileSource, :from_file, script_config_file)
  builder.add_source(YamlConfigFileSource, :from_file, gossip_config_file)
end

#gossip_config_fileObject

This is the name (in the home directory) of the config file that applies to all Gossip scripts.



85
# File 'lib/gossip/site-config.rb', line 85

def gossip_config_file; ".gossiprc"; end