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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5867d08a738ea8a97759357a415415e38d9d513e634ab85c1cbe7a483b1fe505
4
- data.tar.gz: 3790476d6ae8c0fa4337ac387b29c83acd55c51683373237450f0aeaad6f9d04
3
+ metadata.gz: e436cbd483130841e428a315c59fdd791d9fe540a014df7152267df13a3fdd64
4
+ data.tar.gz: d1dff86690bdff0cde6853976eda3809926c04c582ec9428b315b26865100527
5
5
  SHA512:
6
- metadata.gz: 144c3ed19e5c808dea8590712e0f460ad82a649888521d9368f8236cc20e5359aac547a491dc9cacbb2fd964528577bb380597578458ab682b736986974f6d61
7
- data.tar.gz: 89d0bd3b098c924841ae3d9b2e631ec94ae9b6c8d72bf26ba711666e79bc98fc246b0d9aa1c396317fd8c418297ba38faa486870302cffb91ad164554e55cd02
6
+ metadata.gz: e1ca284246645f3dbec643d2a2341ecd5baf6afcaafb9f0afd602c87e23abfa8ffb028cdfdb5cf7ecb852310fec265e46b65e725580b59bab23e387fd9d714d9
7
+ data.tar.gz: 3c842bff229f1308170a15eee28a3aaf69904a75fc79a13264da25487e40fd36ad387b510d1c30025f9e9119b6b42db7d74c8bb83d068cc9583b1de4cb4b9ec5
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.9)
4
+ rake_circle_ci (0.2.0.pre.10)
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 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
@@ -1,4 +1,5 @@
1
1
  require_relative 'task_sets/environment_variables'
2
+ require_relative 'task_sets/ssh_keys'
2
3
 
3
4
  module RakeCircleCI
4
5
  module TaskSets
@@ -1,3 +1,3 @@
1
1
  module RakeCircleCI
2
- VERSION = '0.2.0.pre.9'
2
+ VERSION = '0.2.0.pre.10'
3
3
  end
@@ -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
- end
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.9
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