Class: HighFive::Thor::Task

Inherits:
Thor
  • Object
show all
Defined in:
lib/high_five/thor/task.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Task



38
39
40
41
# File 'lib/high_five/thor/task.rb', line 38

def initialize(*args)
  super
 
end

Class Method Details



6
7
8
9
10
11
12
13
# File 'lib/high_five/thor/task.rb', line 6

def self.banner(task, namespace = false, subcommand = true)
  if self.namespace == "high_five"
    ns = ""
  else
    ns = "#{self.namespace}:"
  end
  "hi5 #{ns}" + task.formatted_usage(self, namespace, subcommand)
end