Sha256: 23160474a9019021636f28780817ed6edce2b6f859ec83e012c83aef6811b03d

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

module Uricp::Strategy
  class Cleaner
    include Uricp::Strategy::Common

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

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

    def command
      "rm -f #{options['clean'].join(' ')};"
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uricp-0.0.24 lib/uricp/strategy/cleaner.rb
uricp-0.0.23 lib/uricp/strategy/cleaner.rb
uricp-0.0.22 lib/uricp/strategy/cleaner.rb
uricp-0.0.21 lib/uricp/strategy/cleaner.rb
uricp-0.0.20 lib/uricp/strategy/cleaner.rb
uricp-0.0.18 lib/uricp/strategy/cleaner.rb
uricp-0.0.17 lib/uricp/strategy/cleaner.rb
uricp-0.0.16 lib/uricp/strategy/cleaner.rb