Sha256: 704f7b22a6e8584ecf7274ac823f990477431d5f46ac53e611b2d8a9b3e06c9d

Contents?: true

Size: 691 Bytes

Versions: 9

Compression:

Stored size: 691 Bytes

Contents

require 'rake_factory'

module RakeGithub
  module Tasks
    module DeployKeys
      class Ensure < RakeFactory::Task
        default_name :ensure
        default_description RakeFactory::DynamicValue.new { |t|
          "Ensure deploy keys are configured on the " +
              "#{t.repository} repository"
        }

        parameter :repository, required: true

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

        action do |t, args|
          t.application[t.destroy_task_name, t.scope].invoke(*args)
          t.application[t.provision_task_name, t.scope].invoke(*args)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rake_github-0.8.0.pre.1 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.7.0 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.6.0.pre.2 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.6.0.pre.1 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.5.0 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.4.0.pre.1 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.3.0 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.2.0.pre.8 lib/rake_github/tasks/deploy_keys/ensure.rb
rake_github-0.2.0.pre.7 lib/rake_github/tasks/deploy_keys/ensure.rb