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)


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

def self.exit_on_failure?
    true
end

Instance Method Details

#clean(task) ⇒ Object



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

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

#halt(task) ⇒ Object



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

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

#initObject



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

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

#rush(task) ⇒ Object



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

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

#snapshot(task) ⇒ Object



90
91
92
# File 'lib/zerg/cli.rb', line 90

def snapshot(task)
    puts Zerg::Runner.snapshot(task, options[:base])
end