rake_circle_ci 0.2.0.pre.9 → 0.2.0.pre.10
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/ssh_keys.rb +33 -0
- data/lib/rake_circle_ci/task_sets.rb +1 -0
- data/lib/rake_circle_ci/version.rb +1 -1
- data/lib/rake_circle_ci.rb +5 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e436cbd483130841e428a315c59fdd791d9fe540a014df7152267df13a3fdd64
|
4
|
+
data.tar.gz: d1dff86690bdff0cde6853976eda3809926c04c582ec9428b315b26865100527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1ca284246645f3dbec643d2a2341ecd5baf6afcaafb9f0afd602c87e23abfa8ffb028cdfdb5cf7ecb852310fec265e46b65e725580b59bab23e387fd9d714d9
|
7
|
+
data.tar.gz: 3c842bff229f1308170a15eee28a3aaf69904a75fc79a13264da25487e40fd36ad387b510d1c30025f9e9119b6b42db7d74c8bb83d068cc9583b1de4cb4b9ec5
|
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 SSHKeys < 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 :ssh_keys, 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::SSHKeys::Provision,
|
20
|
+
name: RakeFactory::DynamicValue.new { |ts|
|
21
|
+
ts.provision_task_name
|
22
|
+
}
|
23
|
+
task Tasks::SSHKeys::Destroy,
|
24
|
+
name: RakeFactory::DynamicValue.new { |ts|
|
25
|
+
ts.destroy_task_name
|
26
|
+
}
|
27
|
+
task Tasks::SSHKeys::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
@@ -7,4 +7,8 @@ module RakeCircleCI
|
|
7
7
|
def self.define_environment_variables_tasks(opts = {}, &block)
|
8
8
|
RakeCircleCI::TaskSets::EnvironmentVariables.define(opts, &block)
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
|
+
def self.define_ssh_keys_tasks(opts = {}, &block)
|
12
|
+
RakeCircleCI::TaskSets::SSHKeys.define(opts, &block)
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- lib/rake_circle_ci/client.rb
|
202
202
|
- lib/rake_circle_ci/task_sets.rb
|
203
203
|
- lib/rake_circle_ci/task_sets/environment_variables.rb
|
204
|
+
- lib/rake_circle_ci/task_sets/ssh_keys.rb
|
204
205
|
- lib/rake_circle_ci/tasks.rb
|
205
206
|
- lib/rake_circle_ci/tasks/environment_variables.rb
|
206
207
|
- lib/rake_circle_ci/tasks/environment_variables/destroy.rb
|