rake_git_crypt 0.1.0.pre.7 → 0.1.0.pre.8
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_git_crypt/tasks/lock.rb +26 -0
- data/lib/rake_git_crypt/tasks/unlock.rb +22 -0
- data/lib/rake_git_crypt/tasks.rb +2 -0
- data/lib/rake_git_crypt/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3edb77bdf63e57316d94df6bafad8334af1abb9e4a40f1cd87d86b48f2ff1a9
|
4
|
+
data.tar.gz: 474868667746b54b37ee67c9520ac7c9055d6a8414ba8cce224834c57da15560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c067a613450edd4b29fc804f7e4d49ee02dea58ab5572ec7ab64eaf6bb20cf06270bb7cdd0efcf410d56bd408fa4f4a6aefbd5f5dd1c1b08d35d4262d2874fb
|
7
|
+
data.tar.gz: e1149df72ad34c4d5600918527c29c366201595569cb2bfd1bcc3b8255c3c34399c57dbb4a795b5d6dca47c71122a65ff4e339a5022576a45fe228e26b6ddb50
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rake_factory'
|
4
|
+
require 'ruby_git_crypt'
|
5
|
+
|
6
|
+
module RakeGitCrypt
|
7
|
+
module Tasks
|
8
|
+
class Lock < RakeFactory::Task
|
9
|
+
default_name :lock
|
10
|
+
default_description 'Lock git-crypt.'
|
11
|
+
|
12
|
+
parameter :key_name
|
13
|
+
parameter :force, default: false
|
14
|
+
parameter :all, default: false
|
15
|
+
|
16
|
+
action do
|
17
|
+
puts('Locking git-crypt...')
|
18
|
+
RubyGitCrypt.lock(
|
19
|
+
key_name: key_name,
|
20
|
+
force: force,
|
21
|
+
all: all
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rake_factory'
|
4
|
+
require 'ruby_git_crypt'
|
5
|
+
|
6
|
+
module RakeGitCrypt
|
7
|
+
module Tasks
|
8
|
+
class Unlock < RakeFactory::Task
|
9
|
+
default_name :unlock
|
10
|
+
default_description 'Unlock git-crypt.'
|
11
|
+
|
12
|
+
parameter :key_path
|
13
|
+
|
14
|
+
action do
|
15
|
+
puts('Unlocking git-crypt...')
|
16
|
+
RubyGitCrypt.unlock(
|
17
|
+
key_path: key_path
|
18
|
+
)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/rake_git_crypt/tasks.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_git_crypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
@@ -283,6 +283,8 @@ files:
|
|
283
283
|
- lib/rake_git_crypt/tasks.rb
|
284
284
|
- lib/rake_git_crypt/tasks/add_user.rb
|
285
285
|
- lib/rake_git_crypt/tasks/init.rb
|
286
|
+
- lib/rake_git_crypt/tasks/lock.rb
|
287
|
+
- lib/rake_git_crypt/tasks/unlock.rb
|
286
288
|
- lib/rake_git_crypt/version.rb
|
287
289
|
- rake_git_crypt.gemspec
|
288
290
|
homepage: https://github.com/infrablocks/rake_git_crypt
|