Sha256: 397dee1ad2dfc379d711344d8732b96a95cb13457504f994070bc170ed6ec9f9
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require 'highline/import' require 'rainbow' module AcquiaToolbelt class CLI class UI < Thor::Base.shell # Internal: Used for outputting a pretty success message. # # text - The text to run through and output to the end user. # # Returns the string coloured and formatted. def success(text) puts "#{text}".foreground(:green) end # Internal: Used for outputting a pretty error message. # # text - The text to run through and output to the end user. # # Returns the string coloured and formatted. def fail(text) puts "#{text}".foreground(:red) end # Internal: Used for outputting a pretty info message. # # text - The text to run through and output to the end user. # # Returns the string coloured and formatted. def info(text) puts "#{text}".foreground(:cyan) end # Internal: Used for outputting a pretty debug message. # # text - The text to run through and output to the end user. # # Returns the string coloured and formatted. def debug(text) puts "#{text}".foreground(:yellow) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acquia_toolbelt-2.3.2 | lib/acquia_toolbelt/cli/ui.rb |