Sha256: 3eb8c8ef7fa4f3238ca2cc7fad972d4a40541e6842ad0f19a1e664b4a4ca3fcd

Contents?: true

Size: 944 Bytes

Versions: 18

Compression:

Stored size: 944 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

require_relative '../tasks'

module RakeGithub
  module TaskSets
    class DeployKeys < RakeFactory::TaskSet
      prepend RakeFactory::Namespaceable

      parameter :repository, required: true
      parameter :access_token, required: true
      parameter :deploy_keys, default: []

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rake_github-0.16.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.16.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.15.0 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.14.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.14.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.13.0 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.6 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.5 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.4 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.3 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.12.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.11.0 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.8 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.7 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.6 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.5 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.4 lib/rake_github/task_sets/deploy_keys.rb