Sha256: cc1c7a27e46d1b0e1eb230f551d8cfb707b7ad961d8527655c75373dd89cd9fe

Contents?: true

Size: 721 Bytes

Versions: 13

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

module RakeCircleCI
  module Tasks
    module SSHKeys
      class Ensure < RakeFactory::Task
        default_name :ensure
        default_description(RakeFactory::DynamicValue.new do |t|
          'Ensure SSH keys are configured on the ' \
            "#{t.project_slug} project"
        end)

        parameter :project_slug, 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

13 entries across 13 versions & 1 rubygems

Version Path
rake_circle_ci-0.14.0.pre.2 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.14.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.13.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.12.0.pre.5 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.12.0.pre.4 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.12.0.pre.3 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.12.0.pre.2 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.12.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.11.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.10 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.9 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.8 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.7 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb