Sha256: db88e04245bce9d0cc9d8be8ba94dad2edae72687906f95933415b8d29d6eaad

Contents?: true

Size: 584 Bytes

Versions: 75

Compression:

Stored size: 584 Bytes

Contents

module PactBroker
  module DB
    class CleanTask < ::Rake::TaskLib

      attr_accessor :database_connection

      def initialize &block
        rake_task &block
      end

      def rake_task &block
        namespace :pact_broker do
          namespace :db do
            desc "Clean unused pacts and verifications from database"
            task :clean do | t, args |
              require 'pact_broker/db/clean'
              instance_eval(&block)
              PactBroker::DB::Clean.call(database_connection)
            end
          end
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
pact_broker-2.68.1 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.68.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.67.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.66.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.65.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.64.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.63.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.62.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.61.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.60.1 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.60.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.59.2 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.59.1 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.59.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.58.3 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.58.2 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.58.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.57.0 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.56.1 lib/pact_broker/tasks/clean_task.rb
pact_broker-2.56.0 lib/pact_broker/tasks/clean_task.rb