Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* all calls should run through UI

  • Loading branch information...
commit 1ab99293b93ad5c8bb452d18182f05d8c09eed76 1 parent 8392721
Brandur authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  lib/facts/cli.rb
6  lib/facts/cli.rb
@@ -323,11 +323,11 @@ def new_from_temp_file
323 323
 
324 324
     def output_categories(categories)
325 325
       categories.each do |c|
326  
-        puts "#{C.underscore{ C.bold{ c.name } } } #{C.yellow{ c.id.to_s } } #{C.on_red{ c.slug}}"
  326
+        Facts.ui.puts "#{C.underscore{ C.bold{ c.name } } } #{C.yellow{ c.id.to_s } } #{C.on_red{ c.slug}}"
327 327
         if c.facts && c.facts.count > 0
328 328
           output_facts(c.facts)
329 329
         else
330  
-          puts ''
  330
+          Facts.ui.puts ''
331 331
         end
332 332
       end
333 333
     end
@@ -341,7 +341,7 @@ def output_facts(facts, standalone = false)
341 341
     end
342 342
 
343 343
     def output_ok
344  
-      puts "[ #{C.green{ 'OK' }} ]"
  344
+      Facts.ui.puts "[ #{C.green{ 'OK' }} ]"
345 345
     end
346 346
 
347 347
     # Best effort to parse some Markdown for display in a terminal.

0 notes on commit 1ab9929

Please sign in to comment.
Something went wrong with that request. Please try again.