Class: Thor::Actions::CreateFile
- Inherits:
-
Object
- Object
- Thor::Actions::CreateFile
- 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
275 276 277 278 279 280 281 282 |
# File 'lib/middleman-core/cli/build.rb', line 275 def on_conflict_behavior(&block) if identical? say_status :identical, :blue else say_status :update, :yellow block.call unless pretend? end end |