Class: Thor::Actions::CreateFile

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

Overview

Create file helper class

Instance Method Summary collapse

Instance Method Details

#on_conflict_behavior(&block) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/middleman-presentation-core/cli/reset_thor.rb', line 8

def on_conflict_behavior(&block)
  if identical?
    say_status :identical, :blue
  else
    options = base.options.merge(config)
    force_or_skip_or_conflict(options[:force], options[:skip], &block)
  end
end