Sha256: 713e08e1cad6dc13b90091fbd7dd3eeecbe49f0e97c75df7a7de4e6c7c48db1b

Contents?: true

Size: 451 Bytes

Versions: 15

Compression:

Stored size: 451 Bytes

Contents

module Uricp::Strategy
  
  class Cleaner

    include Uricp::Strategy::Common

    def appropriate?
      if options['clean'] && sequence_complete?
        return proposal
      end
      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

15 entries across 15 versions & 1 rubygems

Version Path
uricp-0.0.15 lib/uricp/strategy/cleaner.rb
uricp-0.0.14 lib/uricp/strategy/cleaner.rb
uricp-0.0.13 lib/uricp/strategy/cleaner.rb
uricp-0.0.12 lib/uricp/strategy/cleaner.rb
uricp-0.0.11 lib/uricp/strategy/cleaner.rb
uricp-0.0.10 lib/uricp/strategy/cleaner.rb
uricp-0.0.9 lib/uricp/strategy/cleaner.rb
uricp-0.0.8 lib/uricp/strategy/cleaner.rb
uricp-0.0.7 lib/uricp/strategy/cleaner.rb
uricp-0.0.6 lib/uricp/strategy/cleaner.rb
uricp-0.0.5 lib/uricp/strategy/cleaner.rb
uricp-0.0.4 lib/uricp/strategy/cleaner.rb
uricp-0.0.3 lib/uricp/strategy/cleaner.rb
uricp-0.0.2 lib/uricp/strategy/cleaner.rb
uricp-0.0.1 lib/uricp/strategy/cleaner.rb