Sha256: e05bfedfff54646614cb24ce0fcb7fc087560dfb6d6db19457353835e5a4109a

Contents?: true

Size: 698 Bytes

Versions: 8

Compression:

Stored size: 698 Bytes

Contents

require 'rake_factory'

module RakeCircleCI
  module Tasks
    module CheckoutKeys
      class Ensure < RakeFactory::Task
        default_name :ensure
        default_description RakeFactory::DynamicValue.new { |t|
          'Ensure checkout 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

8 entries across 8 versions & 1 rubygems

Version Path
rake_circle_ci-0.10.0.pre.6 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.10.0.pre.5 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.10.0.pre.4 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.10.0.pre.3 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.10.0.pre.2 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.10.0.pre.1 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.9.0 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb
rake_circle_ci-0.8.0.pre.4 lib/rake_circle_ci/tasks/checkout_keys/ensure.rb