Class: Kuby::Commands

Inherits:
Object
  • Object
show all
Extended by:
GLI::App
Defined in:
lib/kuby/commands.rb

Class Method Summary collapse

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!(global_options)
  return if @kuby_config_loaded

  Kuby.env = global_options[:environment] if global_options[:environment]
  Kuby.load!(global_options[:config])
  @kuby_config_loaded = true
end

.tasksObject

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