Sha256: 6887b6ef85545c9c2417c7e7c472521a61f9f5fe0e77f6d0ea388d4692a12b38

Contents?: true

Size: 993 Bytes

Versions: 13

Compression:

Stored size: 993 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

require_relative '../tasks'

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

      parameter :project_slug, required: true
      parameter :api_token, required: true
      parameter :base_url, default: 'https://circleci.com/api'
      parameter :ssh_keys, default: {}

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

      task Tasks::SSHKeys::Provision,
           name: RakeFactory::DynamicValue.new { |ts|
             ts.provision_task_name
           }
      task Tasks::SSHKeys::Destroy,
           name: RakeFactory::DynamicValue.new { |ts|
             ts.destroy_task_name
           }
      task Tasks::SSHKeys::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/ssh_keys.rb
rake_circle_ci-0.14.0.pre.1 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.13.0 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.12.0.pre.5 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.12.0.pre.4 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.12.0.pre.3 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.12.0.pre.2 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.12.0.pre.1 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.11.0 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.10.0.pre.10 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.10.0.pre.9 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.10.0.pre.8 lib/rake_circle_ci/task_sets/ssh_keys.rb
rake_circle_ci-0.10.0.pre.7 lib/rake_circle_ci/task_sets/ssh_keys.rb