Class: CliConfig

Inherits:
Object
  • Object
show all
Includes:
Mixlib::CLI
Defined in:
lib/cli_config.rb

Instance Method Summary collapse

Instance Method Details

#dataObject



49
50
51
# File 'lib/cli_config.rb', line 49

def data
  config
end

#load!Object



42
43
44
45
46
47
# File 'lib/cli_config.rb', line 42

def load!
  self.parse_options
  unless self.config[:domain] && self.config[:room] && (self.config[:username] || self.config[:api_key])
    raise "Missing parameters - please run 'campline --help' for help" 
  end
end