diff options
author | elijah <elijah@riseup.net> | 2012-11-04 01:22:23 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-04 01:22:23 -0800 |
commit | dc3eeb6d98a48ab1834dc2d76514664a204b3619 (patch) | |
tree | 3132ea48a3b7ba555ba2b83e2fb208aca6386f9c /lib/leap_cli/util.rb | |
parent | 05f4f6944e8b44ea92eaf55c7368261478ee41ea (diff) | |
download | leap_cli-dc3eeb6d98a48ab1834dc2d76514664a204b3619.tar.gz leap_cli-dc3eeb6d98a48ab1834dc2d76514664a204b3619.tar.bz2 |
better reporting of puppet progress (supply_drop hack)
Diffstat (limited to 'lib/leap_cli/util.rb')
-rw-r--r-- | lib/leap_cli/util.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index 909dc0a..ba88891 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -1,4 +1,5 @@ require 'digest/md5' +require 'paint' module LeapCli @@ -112,19 +113,19 @@ module LeapCli end def progress_created(path) - progress 'created %s' % relative_path(path) + progress Paint['created', :green, :bold] + ' ' + relative_path(path) end def progress_updated(path) - progress 'updated %s' % relative_path(path) + progress Paint['updated', :cyan, :bold] + ' ' + relative_path(path) end def progress_nochange(path) - progress2 'no change %s' % relative_path(path) + progress2 Paint['no change', :white, :bold] + ' ' + relative_path(path) end def progress_removed(path) - progress 'removed %s' % relative_path(path) + progress Paint['removed', :red, :bold] + ' ' + relative_path(path) end # |