rake_github 0.2.0.pre.3 → 0.2.0.pre.4

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: af2be1c96bd398bfb0e60a0cad9667d3bfaf631735aa0c76ac08de2b9ffd8b90
4
- data.tar.gz: fc83c8ae67462301fc68b4e07d079ac04bd6eb7f751d8244f443b814670309ca
3
+ metadata.gz: e96187a09733019193f0e77324a3d91991cd570bca98c09915d52d82d981b897
4
+ data.tar.gz: 6cc7fd14a0064f01174af3aa297d9b34952613d1c1c6a74a484d45658b031c03
5
5
  SHA512:
6
- metadata.gz: c5b877b9009fc1a7e042c0173fff3653c038265d607c3e933d618455dae836346f5eef8eaa7428290bcd1d70996142f44b84862fa526f1edba1afaa7993fb36b
7
- data.tar.gz: 335c04348cbe1f448334a058a68eb74945b3bda8443379bf469a6fe53a03b6b6bfeddf4439f8ce52134ad1192bbf79240cb280b791957df5e8123be40e363596
6
+ metadata.gz: f17cddb3fa912ceefcc9f24a86e35959b757b2699049e558136e9756ec1b25d5bd12feae773af55185da2eb05345bae5be2fd38d8119741e8ac992b3f2e588c2
7
+ data.tar.gz: 3d67907313ba39991311fbf36d2ccceaf252a52e1af928e821b4891376de3af3b526862bb9815ae62845d1bd7961854d1e237e5ed4bd6ec2be7fd7f1b2c306d1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_github (0.2.0.pre.3)
4
+ rake_github (0.2.0.pre.4)
5
5
  colored2 (~> 3.1)
6
6
  octokit (~> 4.16)
7
7
  rake_factory (~> 0.23)
@@ -0,0 +1,26 @@
1
+ require 'rake_factory'
2
+
3
+ module RakeGithub
4
+ module Tasks
5
+ module DeployKey
6
+ class Ensure < RakeFactory::Task
7
+ default_name :ensure
8
+ default_description RakeFactory::DynamicValue.new { |t|
9
+ "Ensure deploy key #{t.title} is configured on the " +
10
+ "#{t.repository} repository"
11
+ }
12
+
13
+ parameter :repository, required: true
14
+ parameter :title, required: true
15
+
16
+ parameter :provision_task_name, default: :provision
17
+ parameter :destroy_task_name, default: :destroy
18
+
19
+ action do |t, args|
20
+ t.application[t.destroy_task_name, t.scope].invoke(*args)
21
+ t.application[t.provision_task_name, t.scope].invoke(*args)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,2 +1,3 @@
1
1
  require_relative 'deploy_key/provision'
2
2
  require_relative 'deploy_key/destroy'
3
+ require_relative 'deploy_key/ensure'
@@ -1,3 +1,3 @@
1
1
  module RakeGithub
2
- VERSION = '0.2.0.pre.3'
2
+ VERSION = '0.2.0.pre.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.3
4
+ version: 0.2.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -200,6 +200,7 @@ files:
200
200
  - lib/rake_github/tasks.rb
201
201
  - lib/rake_github/tasks/deploy_key.rb
202
202
  - lib/rake_github/tasks/deploy_key/destroy.rb
203
+ - lib/rake_github/tasks/deploy_key/ensure.rb
203
204
  - lib/rake_github/tasks/deploy_key/provision.rb
204
205
  - lib/rake_github/version.rb
205
206
  - rake_github.gemspec