Sha256: 8476f403ec7a900d76ac6256ec4992a284e1a07ec1ed00f772087e92e6be3e0d

Contents?: true

Size: 688 Bytes

Versions: 19

Compression:

Stored size: 688 Bytes

Contents

require 'rake_factory'

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

        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

19 entries across 19 versions & 1 rubygems

Version Path
rake_circle_ci-0.10.0.pre.6 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.5 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.4 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.3 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.2 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.10.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.9.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.8.0.pre.4 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.8.0.pre.3 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.8.0.pre.2 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.8.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.7.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.6.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.5.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.4.0.pre.1 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.3.0 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.2.0.pre.11 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.2.0.pre.10 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb
rake_circle_ci-0.2.0.pre.9 lib/rake_circle_ci/tasks/ssh_keys/ensure.rb