rake_circle_ci 0.2.0.pre.4 → 0.2.0.pre.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3bb7bbbc84c8a33e4389ab4188166e0c5505caad1ded6deaadb2444c866e3b1
4
- data.tar.gz: 3adbb2d6830e4bb0a4db1ba6d6da9511379c4bf7ff81f25338381f29542d4b94
3
+ metadata.gz: 2b999d9deea8db5852bc53d96e9ff3965b09bbddb99106ed5a44f6d5826e0b26
4
+ data.tar.gz: 87a15e57f15fcca8dd55c14ef4b0f62b0e4ad98b238f46dc26b61a5fb5625cee
5
5
  SHA512:
6
- metadata.gz: 40da481bb51aecc080924ece07ec07ba4d37f9ce7c3019dc12a1868e2b1e19333abcf369635efe84a39233d2ef24b11bda9e6ca2e0fd8de32af12dbd60d61774
7
- data.tar.gz: a132ab31ab9065d76245b0e361fe31bd56bc7c356fd3638227252e2895ce02d59d18c70ac7a45e42b26fa3698cf6bfc3cf700427fabe00ebe36d895fb89775d9
6
+ metadata.gz: 4de42a717b908cfa27563d92cae9f4beef6bc02a1ed3011805538c3ee17c3b9708ef13ccf2f9935a2e39cef2505aaec37f924c279f9238c3dfe7fc95afaf4f50
7
+ data.tar.gz: 9db4170ab8bac528ce29d154f9233500be3bad8b4c82310d14ec7d8a6e857f5c688217b5ac7810fc759a22a2f09ce0aea996a77cfaec2bb2907c7761095a8d74
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_circle_ci (0.2.0.pre.4)
4
+ rake_circle_ci (0.2.0.pre.5)
5
5
  colored2 (~> 3.1)
6
6
  excon (~> 0.72)
7
7
  rake_factory (~> 0.23)
@@ -0,0 +1,33 @@
1
+ require 'rake_factory'
2
+
3
+ require_relative '../tasks'
4
+
5
+ module RakeCircleCI
6
+ module TaskSets
7
+ class EnvironmentVariables < RakeFactory::TaskSet
8
+ prepend RakeFactory::Namespaceable
9
+
10
+ parameter :project_slug, required: true
11
+ parameter :api_token, required: true
12
+ parameter :base_url, default: 'https://circleci.com/api'
13
+ parameter :environment_variables, default: {}
14
+
15
+ parameter :destroy_task_name, default: :destroy
16
+ parameter :provision_task_name, default: :provision
17
+ parameter :ensure_task_name, default: :ensure
18
+
19
+ task Tasks::EnvironmentVariables::Provision,
20
+ name: RakeFactory::DynamicValue.new { |ts|
21
+ ts.provision_task_name
22
+ }
23
+ task Tasks::EnvironmentVariables::Destroy,
24
+ name: RakeFactory::DynamicValue.new { |ts|
25
+ ts.destroy_task_name
26
+ }
27
+ task Tasks::EnvironmentVariables::Ensure,
28
+ name: RakeFactory::DynamicValue.new { |ts|
29
+ ts.ensure_task_name
30
+ }
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,6 @@
1
+ require_relative 'task_sets/environment_variables'
2
+
3
+ module RakeCircleCI
4
+ module TaskSets
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module RakeCircleCI
2
- VERSION = '0.2.0.pre.4'
2
+ VERSION = '0.2.0.pre.5'
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require 'rake_circle_ci/version'
2
2
  require 'rake_circle_ci/client'
3
3
  require 'rake_circle_ci/tasks'
4
+ require 'rake_circle_ci/task_sets'
4
5
 
5
6
  module RakeCircleCI
6
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_circle_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.4
4
+ version: 0.2.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-07 00:00:00.000000000 Z
11
+ date: 2020-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_factory
@@ -199,6 +199,8 @@ files:
199
199
  - go
200
200
  - lib/rake_circle_ci.rb
201
201
  - lib/rake_circle_ci/client.rb
202
+ - lib/rake_circle_ci/task_sets.rb
203
+ - lib/rake_circle_ci/task_sets/environment_variables.rb
202
204
  - lib/rake_circle_ci/tasks.rb
203
205
  - lib/rake_circle_ci/tasks/environment_variables.rb
204
206
  - lib/rake_circle_ci/tasks/environment_variables/destroy.rb