Exactly match extension "gpg"
This commit is contained in:
parent
6473a90c57
commit
61db2a58a5
@ -6,7 +6,7 @@ module Hbc
|
|||||||
class Container
|
class Container
|
||||||
class Gpg < Base
|
class Gpg < Base
|
||||||
def self.me?(criteria)
|
def self.me?(criteria)
|
||||||
criteria.extension(/gpg/n)
|
criteria.extension(/^(gpg)$/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def import_key
|
def import_key
|
||||||
@ -31,7 +31,7 @@ module Hbc
|
|||||||
import_key
|
import_key
|
||||||
|
|
||||||
Dir.mktmpdir do |unpack_dir|
|
Dir.mktmpdir do |unpack_dir|
|
||||||
@command.run!(gpg, args: ["--batch", "--yes", "--output", Pathname(unpack_dir).join(File.basename(@path.basename, ".gpg")), "--decrypt", @path])
|
@command.run!(gpg, args: ["--batch", "--yes", "--output", Pathname(unpack_dir).join(@path.basename(".gpg")), "--decrypt", @path])
|
||||||
|
|
||||||
extract_nested_inside(unpack_dir)
|
extract_nested_inside(unpack_dir)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user