Method: Pfab::CLI#puts_and_system
- Defined in:
- lib/pfab/cli.rb
#puts_and_system(cmd) ⇒ Object
319 320 321 322 323 324 325 326 |
# File 'lib/pfab/cli.rb', line 319 def puts_and_system cmd puts cmd if $dryrun puts "dry run, didn't run that" else system cmd end end |