Sha256: 8006f1bf27c83f90b2b5ce80ec25fcb425c3a30a3c57045f8c7cb984aeeea8eb
Contents?: true
Size: 884 Bytes
Versions: 25
Compression:
Stored size: 884 Bytes
Contents
require 'rake_factory' require_relative '../../client' module RakeCircleCI module Tasks module EnvironmentVariables class Destroy < RakeFactory::Task default_name :destroy default_description RakeFactory::DynamicValue.new { |t| "Destroy environment variables on the #{t.project_slug} project" } parameter :project_slug, required: true parameter :api_token, required: true parameter :base_url, default: 'https://circleci.com/api' action do |t| client = Client.new( base_url: t.base_url, api_token: t.api_token, project_slug: t.project_slug) print "Destroying all environment variables on the " + "'#{t.project_slug}' project... " client.delete_env_vars puts "Done." end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems