Sha256: 796dbd296ba2ea9412bbb2e3b6bd9b2ad552aeef87137d94462bbd67136396db

Contents?: true

Size: 978 Bytes

Versions: 8

Compression:

Stored size: 978 Bytes

Contents

require 'rake_factory'

require_relative '../tasks'

module RakeCircleCI
  module TaskSets
    class CheckoutKeys < RakeFactory::TaskSet
      prepend RakeFactory::Namespaceable

      parameter :project_slug, required: true
      parameter :api_token, required: true
      parameter :base_url, default: 'https://circleci.com/api'
      parameter :checkout_keys, default: []

      parameter :destroy_task_name, default: :destroy
      parameter :provision_task_name, default: :provision
      parameter :ensure_task_name, default: :ensure

      task Tasks::CheckoutKeys::Provision,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.provision_task_name
          }
      task Tasks::CheckoutKeys::Destroy,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.destroy_task_name
          }
      task Tasks::CheckoutKeys::Ensure,
          name: RakeFactory::DynamicValue.new { |ts|
            ts.ensure_task_name
          }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rake_circle_ci-0.10.0.pre.6 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.5 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.4 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.3 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.2 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.1 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.9.0 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.8.0.pre.4 lib/rake_circle_ci/task_sets/checkout_keys.rb