Module: Lita
- Defined in:
- lib/lita/ext/cli.rb,
lib/lita/ext/core.rb,
lib/lita/ext/handler.rb,
lib/lita/ext/version.rb
Defined Under Namespace
Modules: Ext
Classes: Handler
Class Method Summary
collapse
Class Method Details
.env ⇒ Object
8
9
10
|
# File 'lib/lita/ext/core.rb', line 8
def env
@env ||= ActiveSupport::StringInquirer.new(ENV['LITA_ENV'] || 'development')
end
|
.root ⇒ Object
12
13
14
|
# File 'lib/lita/ext/core.rb', line 12
def root
@root ||= ENV['LITA_ROOT'] ||= File.expand_path('.')
end
|
.run_with_ext(config_path = nil) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/lita/ext/core.rb', line 16
def run_with_ext(config_path = nil)
chdir_to_lita_root
load_dotenv
add_lib_to_load_path
load_initializers
load_app_handlers
register_app_handlers
load_environment_config
run_without_ext(config_path)
end
|