10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/covalence/sops_tasks.rb', line 10
def self.run
desc 'Decrypt files in [:path, :extension]'
task 'sops:decrypt_path', [:path, :extension] do |t, args|
SopsCli.decrypt_path(args[:path] || SopsCli.default_data_dir,
args[:extension] || ".yaml")
end
desc 'Encrypt files in [:path, :extension]'
task 'sops:encrypt_path', [:path, :extension] do |t, args|
SopsCli.encrypt_path(args[:path] || SopsCli.default_data_dir,
args[:extension] || ".yaml")
end
desc 'Clean decrypt files in [:path, :extension]'
task 'sops:clean_decrypt_path', [:path, :extension] do |t, args|
SopsCli.clean_decrypt_path(args[:path] || SopsCli.default_data_dir,
args[:extension] || "*")
end
end
|