Sha256: ed04fb0cc5cbfc4120e58c3522b28f94a9b15a6cd89e247297abcea65d1106c8

Contents?: true

Size: 724 Bytes

Versions: 18

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

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

        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

18 entries across 18 versions & 1 rubygems

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