Sha256: 124910b5a1e9534651b4927ec5e81ea41346832e71116563ff84f3257b6df49b

Contents?: true

Size: 1018 Bytes

Versions: 13

Compression:

Stored size: 1018 Bytes

Contents

# frozen_string_literal: true

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

13 entries across 13 versions & 1 rubygems

Version Path
rake_circle_ci-0.14.0.pre.2 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.14.0.pre.1 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.13.0 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.12.0.pre.5 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.12.0.pre.4 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.12.0.pre.3 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.12.0.pre.2 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.12.0.pre.1 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.11.0 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.10 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.9 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.8 lib/rake_circle_ci/task_sets/checkout_keys.rb
rake_circle_ci-0.10.0.pre.7 lib/rake_circle_ci/task_sets/checkout_keys.rb