16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/chimps/config.rb', line 16
def self.define_config
config.define :site_config, :description => "Path to site-wide configuration file", :env_var => "CHIMPS_ETC", :default => "/etc/chimps/chimps.yaml", :type => String, :no_help => true
config.define :config, :description => "Path to user configuration file", :env_var => "CHIMPS_RC", :default => (ENV["HOME"] && File.expand_path("~/.chimps")), :flag => :c, :type => String
config.define :log, :description => "Path to log file", :flag => :l, :type => String
config.define :timestamp_format, :description => "Format for timestamps", :type => String, :no_help => true, :default => "%Y%m%d-%H%M%S"
config.define :plugin_dirs, :description => "List of directories from which to load plugins", :type => Array, :no_help => true, :default => ['/usr/share/chimps', '/usr/local/share/chimps']
config.define :skip_plugins, :description => "Don't load any plugins", :flag => :q, :type => :boolean
config.define :verbose, :description => "Be verbose", :flag => :v, :type => :boolean
config.define 'query.host', :description => "Host to send Query API requests to", :type => String, :default => "http://api.infochimps.com", :no_help => true, :env_var => "APEYEYE", :no_help => true
config.define 'query.key', :description => "API key for the Query API", :type => String, :no_help => true
config.define 'catalog.username', :description => "Your Infochimps username", :type => String
config.define 'catalog.host', :description => "Host to send Catalog API requests to", :type => String, :default => "http://www.infochimps.com", :env_var => "GEORGE", :no_help => true
config.define 'catalog.key', :description => "API key for the Catalog API", :type => String
config.define 'catalog.secret', :description => "API secret for the Catalog API", :type => String
end
|