rake_github 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: e96187a09733019193f0e77324a3d91991cd570bca98c09915d52d82d981b897
4
- data.tar.gz: 6cc7fd14a0064f01174af3aa297d9b34952613d1c1c6a74a484d45658b031c03
3
+ metadata.gz: 15e23d886d669f9a7abd0341cee4872f4aec52e5f60094b6bb356b4411b7d0ae
4
+ data.tar.gz: cae4417689cb18c8ab63df934644a1d27522dc351db3e02647d8cf73d715d2c5
5
5
  SHA512:
6
- metadata.gz: f17cddb3fa912ceefcc9f24a86e35959b757b2699049e558136e9756ec1b25d5bd12feae773af55185da2eb05345bae5be2fd38d8119741e8ac992b3f2e588c2
7
- data.tar.gz: 3d67907313ba39991311fbf36d2ccceaf252a52e1af928e821b4891376de3af3b526862bb9815ae62845d1bd7961854d1e237e5ed4bd6ec2be7fd7f1b2c306d1
6
+ metadata.gz: 46d1b45e6e8c0d6b93dec88308429f45c4c02d67259f918e00a1715b1c96ceb232ee9ad318df9e69f2b66897bd98d2a68f057712605c45e9f2888f7c7340d1fe
7
+ data.tar.gz: c856fd5910666be0ff2cbcc6b55416fc6857618821e87fdec0581c0ac3d372fb5f31a6b29c3f92a7cf0a5ca446c2be3cd220a24d4989bdd930e8091567f519b2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_github (0.2.0.pre.4)
4
+ rake_github (0.2.0.pre.5)
5
5
  colored2 (~> 3.1)
6
6
  octokit (~> 4.16)
7
7
  rake_factory (~> 0.23)
@@ -0,0 +1,33 @@
1
+ require 'rake_factory'
2
+
3
+ require_relative '../tasks'
4
+
5
+ module RakeGithub
6
+ module TaskSets
7
+ class DeployKey < RakeFactory::TaskSet
8
+ prepend RakeFactory::Namespaceable
9
+
10
+ parameter :repository, required: true
11
+ parameter :title, required: true
12
+ parameter :access_token, required: true
13
+ parameter :public_key, required: true
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::DeployKey::Provision,
20
+ name: RakeFactory::DynamicValue.new { |ts|
21
+ ts.provision_task_name
22
+ }
23
+ task Tasks::DeployKey::Destroy,
24
+ name: RakeFactory::DynamicValue.new { |ts|
25
+ ts.destroy_task_name
26
+ }
27
+ task Tasks::DeployKey::Ensure,
28
+ name: RakeFactory::DynamicValue.new { |ts|
29
+ ts.ensure_task_name
30
+ }
31
+ end
32
+ end
33
+ end
@@ -0,0 +1 @@
1
+ require_relative 'task_sets/deploy_key'
@@ -1,3 +1,3 @@
1
1
  module RakeGithub
2
- VERSION = '0.2.0.pre.4'
2
+ VERSION = '0.2.0.pre.5'
3
3
  end
data/lib/rake_github.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  require 'rake_github/version'
2
2
  require 'rake_github/tasks'
3
+ require 'rake_github/task_sets'
3
4
 
4
5
  module RakeGithub
6
+ def self.define_deploy_key_tasks(opts = {}, &block)
7
+ RakeGithub::TaskSets::DeployKey.define(opts, &block)
8
+ end
5
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_github
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-09 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_factory
@@ -197,6 +197,8 @@ files:
197
197
  - config/secrets/rubygems/credentials
198
198
  - go
199
199
  - lib/rake_github.rb
200
+ - lib/rake_github/task_sets.rb
201
+ - lib/rake_github/task_sets/deploy_key.rb
200
202
  - lib/rake_github/tasks.rb
201
203
  - lib/rake_github/tasks/deploy_key.rb
202
204
  - lib/rake_github/tasks/deploy_key/destroy.rb