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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_github/tasks/deploy_key/ensure.rb +26 -0
- data/lib/rake_github/tasks/deploy_key.rb +1 -0
- data/lib/rake_github/version.rb +1 -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: e96187a09733019193f0e77324a3d91991cd570bca98c09915d52d82d981b897
|
4
|
+
data.tar.gz: 6cc7fd14a0064f01174af3aa297d9b34952613d1c1c6a74a484d45658b031c03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f17cddb3fa912ceefcc9f24a86e35959b757b2699049e558136e9756ec1b25d5bd12feae773af55185da2eb05345bae5be2fd38d8119741e8ac992b3f2e588c2
|
7
|
+
data.tar.gz: 3d67907313ba39991311fbf36d2ccceaf252a52e1af928e821b4891376de3af3b526862bb9815ae62845d1bd7961854d1e237e5ed4bd6ec2be7fd7f1b2c306d1
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/rake_github/version.rb
CHANGED
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.
|
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
|