Module: RubyGPG2::ClassMethods

Included in:
RubyGPG2
Defined in:
lib/ruby_gpg2.rb

Instance Method Summary collapse

Instance Method Details

#decrypt(opts = {}) ⇒ Object



28
29
30
# File 'lib/ruby_gpg2.rb', line 28

def decrypt(opts = {})
  Commands::Decrypt.new.execute(opts)
end

#encrypt(opts = {}) ⇒ Object



32
33
34
# File 'lib/ruby_gpg2.rb', line 32

def encrypt(opts = {})
  Commands::Encrypt.new.execute(opts)
end

#export(opts = {}) ⇒ Object



36
37
38
# File 'lib/ruby_gpg2.rb', line 36

def export(opts = {})
  Commands::Export.new.execute(opts)
end

#export_secret_keys(opts = {}) ⇒ Object



40
41
42
# File 'lib/ruby_gpg2.rb', line 40

def export_secret_keys(opts = {})
  Commands::ExportSecretKeys.new.execute(opts)
end

#generate_key(opts = {}) ⇒ Object



44
45
46
# File 'lib/ruby_gpg2.rb', line 44

def generate_key(opts = {})
  Commands::GenerateKey.new.execute(opts)
end

#import(opts = {}) ⇒ Object



48
49
50
# File 'lib/ruby_gpg2.rb', line 48

def import(opts = {})
  Commands::Import.new.execute(opts)
end

#list_public_keys(opts = {}) ⇒ Object



52
53
54
# File 'lib/ruby_gpg2.rb', line 52

def list_public_keys(opts = {})
  Commands::ListPublicKeys.new.execute(opts)
end

#list_secret_keys(opts = {}) ⇒ Object



56
57
58
# File 'lib/ruby_gpg2.rb', line 56

def list_secret_keys(opts = {})
  Commands::ListSecretKeys.new.execute(opts)
end