Class: Kuby::Commands
- Inherits:
-
Object
- Object
- Kuby::Commands
- Extended by:
- GLI::App
- Defined in:
- lib/kuby/commands.rb
Class Method Summary collapse
-
.load_kuby_config!(global_options) ⇒ Object
T::Sig::WithoutRuntime.sig { params( global_options: T::Hash[T.any(String, Symbol), T.any(String, Integer)] ).void }.
-
.tasks ⇒ Object
T::Sig::WithoutRuntime.sig { returns(Kuby::Tasks) }.
Class Method Details
.load_kuby_config!(global_options) ⇒ Object
T::Sig::WithoutRuntime.sig
params(
global_options: T::Hash[T.any(String, Symbol), T.any(String, Integer)]
).void
50 51 52 53 54 55 56 |
# File 'lib/kuby/commands.rb', line 50 def self.load_kuby_config!() return if @kuby_config_loaded Kuby.env = [:environment] if [:environment] Kuby.load!([:config]) @kuby_config_loaded = true end |
.tasks ⇒ Object
T::Sig::WithoutRuntime.sig { returns(Kuby::Tasks) }
41 42 43 |
# File 'lib/kuby/commands.rb', line 41 def self.tasks Kuby::Tasks.new(Kuby.environment) end |