Sha256: 1b005f9b6deb93eca252f0360e844643f45ca4b6dbeb793a53a52c137a6a6cbe

Contents?: true

Size: 692 Bytes

Versions: 15

Compression:

Stored size: 692 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

15 entries across 15 versions & 1 rubygems

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