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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ce17ef4adf03c23d3f0317d98a8e50559f192d1e77be3736cead101cacc0357
4
- data.tar.gz: '0596975061976467ab3f9fbabe20d34c33951e91dceb31cd9f412269636db243'
3
+ metadata.gz: d3edb77bdf63e57316d94df6bafad8334af1abb9e4a40f1cd87d86b48f2ff1a9
4
+ data.tar.gz: 474868667746b54b37ee67c9520ac7c9055d6a8414ba8cce224834c57da15560
5
5
  SHA512:
6
- metadata.gz: ebba33cb2adf1f65c2085cf25d71c21d9b173a8720a2ef4e610b188f7b6f30cd27463f9f7fffd925f58c875843eebaa17a1c3be28f17b11a60a48d06543e82ad
7
- data.tar.gz: 81147c3981f97daebdcb560a2297a2811619e1dcce030260a3c605dc1e29ea55bde13db3c452f33ba21b6b5c7d25ae0bf58e88a5368a9c90ae848b795103a4fd
6
+ metadata.gz: 1c067a613450edd4b29fc804f7e4d49ee02dea58ab5572ec7ab64eaf6bb20cf06270bb7cdd0efcf410d56bd408fa4f4a6aefbd5f5dd1c1b08d35d4262d2874fb
7
+ data.tar.gz: e1149df72ad34c4d5600918527c29c366201595569cb2bfd1bcc3b8255c3c34399c57dbb4a795b5d6dca47c71122a65ff4e339a5022576a45fe228e26b6ddb50
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_git_crypt (0.1.0.pre.7)
4
+ rake_git_crypt (0.1.0.pre.8)
5
5
  colored2 (~> 3.1)
6
6
  rake_factory (~> 0.23)
7
7
  ruby_git_crypt (= 0.1.0.pre.2)
@@ -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
@@ -2,6 +2,8 @@
2
2
 
3
3
  require_relative 'tasks/init'
4
4
  require_relative 'tasks/add_user'
5
+ require_relative 'tasks/lock'
6
+ require_relative 'tasks/unlock'
5
7
 
6
8
  module RakeGitCrypt
7
9
  module Tasks
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeGitCrypt
4
- VERSION = '0.1.0.pre.7'
4
+ VERSION = '0.1.0.pre.8'
5
5
  end
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.7
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