Sha256: 7df1ff7cda7d4021bfd8345427779fddda7a682a160af3b7e4195b65b7bce2e5

Contents?: true

Size: 904 Bytes

Versions: 24

Compression:

Stored size: 904 Bytes

Contents

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

24 entries across 24 versions & 1 rubygems

Version Path
rake_github-0.10.0.pre.3 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.10.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.9.0 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.12 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.11 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.10 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.9 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.8 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.7 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.6 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.5 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.4 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.3 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.8.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.7.0 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.6.0.pre.2 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.6.0.pre.1 lib/rake_github/task_sets/deploy_keys.rb
rake_github-0.5.0 lib/rake_github/task_sets/deploy_keys.rb