Sha256: 75b0726a348a59c98e4fd0e3b50d66b65b8a99665b3af4bdb6603deed7370d8e

Contents?: true

Size: 747 Bytes

Versions: 13

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'

module RakeCircleCI
  module Tasks
    module EnvironmentVariables
      class Ensure < RakeFactory::Task
        default_name :ensure
        default_description(RakeFactory::DynamicValue.new do |t|
          'Ensure environment variables 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/environment_variables/ensure.rb
rake_circle_ci-0.14.0.pre.1 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.13.0 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.12.0.pre.5 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.12.0.pre.4 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.12.0.pre.3 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.12.0.pre.2 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.12.0.pre.1 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.11.0 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.10.0.pre.10 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.10.0.pre.9 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.10.0.pre.8 lib/rake_circle_ci/tasks/environment_variables/ensure.rb
rake_circle_ci-0.10.0.pre.7 lib/rake_circle_ci/tasks/environment_variables/ensure.rb