Sha256: d0ad0575615dd0c18c51e736941ed284e61fe63016c9c671438f7cfefca0fc03

Contents?: true

Size: 491 Bytes

Versions: 17

Compression:

Stored size: 491 Bytes

Contents

# Restore original behaviour of thor
# rubocop:disable Style/ClassAndModuleChildren
class ::Thor
  # rubocop:enable Style/ClassAndModuleChildren
  module Actions
    # Create file helper class
    class CreateFile
      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
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
middleman-presentation-core-0.17.7 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.17.6 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.17.5 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.17.2 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.17.1 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.17.0 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.3 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.2 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.0 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.0.rc2 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.0.rc1 lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.0.beta lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-core-0.16.0.alpha lib/middleman-presentation-core/cli/reset_thor.rb
middleman-presentation-0.15.8 lib/middleman-presentation/cli/reset_thor.rb
middleman-presentation-0.15.7 lib/middleman-presentation/cli/reset_thor.rb
middleman-presentation-0.15.6 lib/middleman-presentation/cli/reset_thor.rb
middleman-presentation-0.15.5 lib/middleman-presentation/cli/reset_thor.rb