lib/bones/app/plugins.rb in bones-3.5.5 vs lib/bones/app/plugins.rb in bones-3.6.0

- old
+ new

@@ -12,10 +12,11 @@ those gems. Passing in the 'all' flag will show plugins even if the related gems are not installed. __ option('-a', '--all', 'Show all plugins.', lambda { config[:all] = true }) + option(standard_options[:colorize]) end def run stdout.write 'Looking up avaialble Mr Bones plugins ... ' stdout.flush @@ -44,10 +45,10 @@ def show_plugin( name, version ) name = "bones-#{name}" name << "-#{version}" if version - stdout.puts(" [%s] %s" % [installed?(name) ? 'installed' : 'available', name]) + stdout.puts(" [%s] %s" % [installed?(name) ? colorize('installed', :green) : colorize('available', :cyan), name]) end private def gemspecs