Class: Thor::Actions::CreateFile

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-core/cli/build.rb

Overview

Quiet down create file

Instance Method Summary collapse

Instance Method Details

#on_conflict_behavior(&block) ⇒ Object



298
299
300
301
302
303
304
305
# File 'lib/middleman-core/cli/build.rb', line 298

def on_conflict_behavior(&block)
  if identical?
    say_status :identical, :blue
  else
    say_status :update, :yellow
    block.call unless pretend?
  end
end