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



290
291
292
293
294
295
296
297
# File 'lib/middleman-core/cli/build.rb', line 290

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