lib/rapid-vaults/bindings/chef.rb
def gpg_generate
  ENV['GNUPGHOME'] = '/home/alice/.gnupg'

  options = {}
  options[:action] = :generate
  options[:algorithm] = :gpgme
  options[:gpgparams] = File.read('gpgparams.txt')
  RapidVaults::API.main(options)
end
# returns exit code on status of gnupg setup
returns exit code on status of gnupg setup
returns exit code on status of gnupg setup
def gpg_generate
  ENV['GNUPGHOME'] = '/home/alice/.gnupg'
  options = {}
  options[:action] = :generate
  options[:algorithm] = :gpgme
  options[:gpgparams] = File.read('gpgparams.txt')
  RapidVaults::API.main(options)
end
def gpg_generate ENV [ 'GNUPGHOME' ] = '/home/alice/.gnupg' options = { } options [ :action ] = :generate options [ :algorithm ] = :gpgme options [ :gpgparams ] = File . read ( 'gpgparams.txt' ) RapidVaults :: API . main ( options ) end
returns exit code on status of gnupg setup
returns exit code on status of gnupg setup