Module: Kangaru::Interface

Defined in:
lib/kangaru/interface.rb

Instance Method Summary collapse

Instance Method Details

#apply_config!Object



23
24
25
# File 'lib/kangaru/interface.rb', line 23

def apply_config!
  Kangaru.application!.apply_config!
end

#configObject



7
8
9
# File 'lib/kangaru/interface.rb', line 7

def config
  Kangaru.application!.config
end

#config_path(path, env: nil) ⇒ Object



17
18
19
20
21
# File 'lib/kangaru/interface.rb', line 17

def config_path(path, env: nil)
  return unless env_applies?(env)

  Kangaru.application!.config_path = path
end

#configure(env: nil) ⇒ Object



11
12
13
14
15
# File 'lib/kangaru/interface.rb', line 11

def configure(env: nil, &)
  return unless env_applies?(env)

  Kangaru.application!.configure(&)
end

#databaseObject



27
28
29
# File 'lib/kangaru/interface.rb', line 27

def database
  Kangaru.application!.database
end

#run!(*argv) ⇒ Object



3
4
5
# File 'lib/kangaru/interface.rb', line 3

def run!(*argv)
  Kangaru.application!.run!(*argv)
end