module DBum::Helpers

Mixins for DBum's Thor subclasses.

Public Instance Methods

actions() click to toggle source

Shortcut for Thor::Actions.

# File lib/dbum/helpers.rb, line 25
def actions ; Thor::Actions end
old_puts(*args)

Save the canonical implementation of “puts”

Alias for: puts
puts(*args) click to toggle source

Monkeypatch puts to support Thor::Shell::Color.

# File lib/dbum/helpers.rb, line 14
def puts *args
  return old_puts if args.empty?
  old_puts shell.set_color(*args)
end
Also aliased as: old_puts
util() click to toggle source

Shortcut for Thor::Util.

# File lib/dbum/helpers.rb, line 21
def util ; Thor::Util end