Module: RubyGPG2

Extended by:
ClassMethods
Defined in:
lib/ruby_gpg2.rb,
lib/ruby_gpg2/key.rb,
lib/ruby_gpg2/user_id.rb,
lib/ruby_gpg2/version.rb,
lib/ruby_gpg2/commands.rb,
lib/ruby_gpg2/status_line.rb,
lib/ruby_gpg2/colon_output.rb,
lib/ruby_gpg2/colon_record.rb,
lib/ruby_gpg2/status_lines.rb,
lib/ruby_gpg2/commands/base.rb,
lib/ruby_gpg2/status_output.rb,
lib/ruby_gpg2/commands/export.rb,
lib/ruby_gpg2/commands/import.rb,
lib/ruby_gpg2/commands/result.rb,
lib/ruby_gpg2/commands/decrypt.rb,
lib/ruby_gpg2/commands/encrypt.rb,
lib/ruby_gpg2/commands/generate_key.rb,
lib/ruby_gpg2/status_lines/imported.rb,
lib/ruby_gpg2/status_lines/import_ok.rb,
lib/ruby_gpg2/parameter_file_contents.rb,
lib/ruby_gpg2/status_lines/key_created.rb,
lib/ruby_gpg2/commands/list_public_keys.rb,
lib/ruby_gpg2/commands/list_secret_keys.rb,
lib/ruby_gpg2/status_lines/unimplemented.rb,
lib/ruby_gpg2/commands/export_secret_keys.rb,
lib/ruby_gpg2/status_lines/import_problem.rb,
lib/ruby_gpg2/status_lines/key_considered.rb,
lib/ruby_gpg2/commands/mixins/armor_config.rb,
lib/ruby_gpg2/commands/mixins/batch_config.rb,
lib/ruby_gpg2/commands/mixins/colon_config.rb,
lib/ruby_gpg2/commands/mixins/input_config.rb,
lib/ruby_gpg2/commands/mixins/global_config.rb,
lib/ruby_gpg2/commands/mixins/output_config.rb,
lib/ruby_gpg2/commands/mixins/status_config.rb,
lib/ruby_gpg2/commands/mixins/pinentry_config.rb,
lib/ruby_gpg2/commands/mixins/recipient_config.rb,
lib/ruby_gpg2/commands/mixins/passphrase_config.rb,
lib/ruby_gpg2/commands/mixins/trust_mode_config.rb,
lib/ruby_gpg2/commands/mixins/without_passphrase.rb,
lib/ruby_gpg2/commands/mixins/with_captured_output.rb,
lib/ruby_gpg2/commands/mixins/with_captured_status.rb

Defined Under Namespace

Modules: ClassMethods, Commands, StatusLines Classes: ColonOutput, ColonRecord, Configuration, Key, ParameterFileContents, StatusLine, StatusOutput, UserID

Constant Summary collapse

VERSION =
'0.12.0'

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from ClassMethods

decrypt, encrypt, export, export_secret_keys, generate_key, import, list_public_keys, list_secret_keys

Class Attribute Details

.configurationObject



16
17
18
# File 'lib/ruby_gpg2.rb', line 16

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/ruby_gpg2.rb', line 20

def configure
  yield(configuration)
end

.included(other) ⇒ Object



65
66
67
# File 'lib/ruby_gpg2.rb', line 65

def self.included(other)
  other.extend(ClassMethods)
end

.reset!Object



24
25
26
# File 'lib/ruby_gpg2.rb', line 24

def reset!
  @configuration = nil
end