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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_circle_ci/task_sets/environment_variables.rb +33 -0
- data/lib/rake_circle_ci/task_sets.rb +6 -0
- data/lib/rake_circle_ci/version.rb +1 -1
- data/lib/rake_circle_ci.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b999d9deea8db5852bc53d96e9ff3965b09bbddb99106ed5a44f6d5826e0b26
|
4
|
+
data.tar.gz: 87a15e57f15fcca8dd55c14ef4b0f62b0e4ad98b238f46dc26b61a5fb5625cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4de42a717b908cfa27563d92cae9f4beef6bc02a1ed3011805538c3ee17c3b9708ef13ccf2f9935a2e39cef2505aaec37f924c279f9238c3dfe7fc95afaf4f50
|
7
|
+
data.tar.gz: 9db4170ab8bac528ce29d154f9233500be3bad8b4c82310d14ec7d8a6e857f5c688217b5ac7810fc759a22a2f09ce0aea996a77cfaec2bb2907c7761095a8d74
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/rake_circle_ci.rb
CHANGED
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
|
+
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-
|
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
|