Sha256: 57042560a8751fc8fef0595c8d9d84559d5e8e45372321967a5a174b9f2028d7

Contents?: true

Size: 476 Bytes

Versions: 12

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

module Uricp::Strategy
  class Sweeper
    include Uricp::Strategy::Common

    def appropriate?
      return proposal if options['sweep'] && sequence_complete?

      debug "#{self.class.name}: not appropriate"
      false
    end

    def command
      "mv #{options['sweep'].first} #{options['sweep'].last};"
    end

    def proposal
      @proposed_options = options.dup
      @proposed_options.delete('sweep')
      self
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
uricp-0.0.37 lib/uricp/strategy/sweeper.rb
uricp-0.0.36 lib/uricp/strategy/sweeper.rb
uricp-0.0.35 lib/uricp/strategy/sweeper.rb
uricp-0.0.34 lib/uricp/strategy/sweeper.rb
uricp-0.0.32 lib/uricp/strategy/sweeper.rb
uricp-0.0.31 lib/uricp/strategy/sweeper.rb
uricp-0.0.30 lib/uricp/strategy/sweeper.rb
uricp-0.0.29 lib/uricp/strategy/sweeper.rb
uricp-0.0.28 lib/uricp/strategy/sweeper.rb
uricp-0.0.27 lib/uricp/strategy/sweeper.rb
uricp-0.0.26 lib/uricp/strategy/sweeper.rb
uricp-0.0.25 lib/uricp/strategy/sweeper.rb