class Faith::Output

Public Class Methods

new() click to toggle source
# File lib/faith/output.rb, line 5
def initialize
  @indent_level = 0
end

Public Instance Methods

dedent() click to toggle source
# File lib/faith/output.rb, line 10
def dedent; @indent_level -= 1; end
dependencies(task) click to toggle source
# File lib/faith/output.rb, line 20
def dependencies(task)
  puts indented("#{Rainbow("Dependencies of #{task.full_name} -").purple.bold}")
end
indent() click to toggle source
# File lib/faith/output.rb, line 9
def indent; @indent_level += 1; end
indented(x) click to toggle source
# File lib/faith/output.rb, line 12
def indented(x)
  "#{'  ' * @indent_level}#{x}"
end
mixin(mixin) click to toggle source
# File lib/faith/output.rb, line 24
def mixin(mixin)
  puts indented("#{Rainbow("Mixin #{mixin.full_name} -").blue.bold}")
end
mixin_action(action) click to toggle source
# File lib/faith/output.rb, line 32
def mixin_action(action)
  puts indented("#{Rainbow(action).dark.bold}")
end
run(task) click to toggle source
# File lib/faith/output.rb, line 16
def run(task)
  puts indented(Rainbow(task.full_name).bold)
end
sequence(task) click to toggle source
# File lib/faith/output.rb, line 28
def sequence(task)
  puts indented("#{Rainbow("Sequence #{task.full_name} -").blue.bold}")
end