Sha256: f91cc8426045d950294341ca513af29d942e8d2a115110f10a40cb8d46ae2deb

Contents?: true

Size: 453 Bytes

Versions: 33

Compression:

Stored size: 453 Bytes

Contents

require_relative '../tasklib'

module RakeDependencies
  module Tasks
    class Clean < TaskLib
      parameter :name, :default => :clean
      parameter :path, :required => true
      parameter :dependency, :required => true

      def process_arguments(args)
        self.name = args[0] if args[0]
      end

      def define
        desc "Clean vendored #{dependency}"
        task name do
          rm_rf path
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
rake_dependencies-0.23.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.22.0.pre.pre.2 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.22.0.pre.pre.1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.21.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.20.0.pre.pre.2 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.20.0.pre.pre.1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.19.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.18.1.pre1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.18.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.17.1.pre2 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.17.1.pre1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.17.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.16.1.pre3 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.16.1.pre2 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.16.1.pre1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.16.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.15.2.pre1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.15.1 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.15.0 lib/rake_dependencies/tasks/clean.rb
rake_dependencies-0.14.1 lib/rake_dependencies/tasks/clean.rb