Class: Zerg::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/zerg/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/zerg/cli.rb', line 64

def self.exit_on_failure?
    true
end

Instance Method Details

#clean(task) ⇒ Object



79
80
81
# File 'lib/zerg/cli.rb', line 79

def clean(task)
    puts Zerg::Runner.clean(task, options[:debug])
end

#halt(task) ⇒ Object



84
85
86
# File 'lib/zerg/cli.rb', line 84

def halt(task)
    puts Zerg::Runner.halt(task, options[:debug])
end

#initObject



69
70
71
# File 'lib/zerg/cli.rb', line 69

def init
    puts Zerg::Generators::HiveGen.start
end

#rush(task) ⇒ Object



74
75
76
# File 'lib/zerg/cli.rb', line 74

def rush(task)
    puts Zerg::Runner.rush(task, options[:debug])
end