rake_git_crypt 0.1.0.pre.18 → 0.1.0.pre.19
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 +11 -5
- data/lib/rake_git_crypt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4dd6927b5abe1a03f4b82ed6f95612ab9af44e13159f3f7de7360689a388825
|
4
|
+
data.tar.gz: 6230fa45ca4733d2ebf6ab3cae1a4adbdaeeaa1d07bb71d1bd8b66f477b3f609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '01068a2b6afcf0ee43dff8352e3bdcadec59b8296201c40a0eb06c58a841c185ab7f39c42489271aae25ec56c9f531dbb3d1e011885da89400a5557e8706ec37'
|
7
|
+
data.tar.gz: cc092252269e549fc5782a5e6b0b88805a856092352a503c586b138b4fb0929990f605608b04622cacf3a3c644279ba544ea43f360ff894c804ba75fa228d138
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rake_factory'
|
4
4
|
require 'ruby_git_crypt'
|
5
|
+
require 'open4'
|
5
6
|
|
6
7
|
module RakeGitCrypt
|
7
8
|
module Tasks
|
@@ -15,11 +16,16 @@ module RakeGitCrypt
|
|
15
16
|
|
16
17
|
action do
|
17
18
|
puts('Locking git-crypt...')
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
begin
|
20
|
+
RubyGitCrypt.lock(
|
21
|
+
key_name: key_name,
|
22
|
+
force: force,
|
23
|
+
all: all
|
24
|
+
)
|
25
|
+
puts('Locked.')
|
26
|
+
rescue Open4::SpawnError
|
27
|
+
puts('Already locked.')
|
28
|
+
end
|
23
29
|
end
|
24
30
|
end
|
25
31
|
end
|