Class: Daikon::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/daikon/configuration.rb

Constant Summary collapse

BLANK_KEY =
"1234567890"
FLAGS =
["-u",                   "-k",      "-s"]
OPTIONS =
["redis_url",            "api_key", "server_prefix"]
DEFAULTS =
["redis://0.0.0.0:6379", BLANK_KEY, "https://radish.heroku.com"]

Instance Method Summary collapse

Constructor Details

#initialize(argv = []) ⇒ Configuration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
# File 'lib/daikon/configuration.rb', line 10

def initialize(argv = [])
  @argv = argv

  validate_deprecated_options
  parse
  validate_api_key
end