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



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

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