Method: C3D::Encryptor#initialize
- Defined in:
- lib/c3d/util/encrypt.rb
#initialize(opts = {}) ⇒ Encryptor
Encryptor.new can be instantiated using any gpg options available to the
user. Each of the should be sent as the key to the hash with
the value of the hash being the value of the option send to the gpg
cli. The instantiated class will then use these whenever any
of the instance methods are called.
22 23 24 25 |
# File 'lib/c3d/util/encrypt.rb', line 22 def initialize opts={} @opts = '--quiet --yes ' @opts << build_opts(opts) end |