Class: Kuby::Commands

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

Class Method Summary collapse

Class Method Details

.must_be_dev_env!Object



42
43
44
45
46
# File 'lib/kuby/commands.rb', line 42

def self.must_be_dev_env!
  unless Kuby.environment.development?
    fail "Command not supported in the '#{Kuby.environment.name}' environment"
  end
end

.tasksObject



37
38
39
# File 'lib/kuby/commands.rb', line 37

def self.tasks
  Kuby::Tasks.new(Kuby.environment)
end