Sha256: 53273e4fe55b9307ea326c587236599f29d22108c60ed639b470d6d2b439c206
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require 'ruby_gpg2/version' require 'ruby_gpg2/commands' require 'ruby_gpg2/parameter_file_contents' require 'ruby_gpg2/colon_output' require 'ruby_gpg2/status_output' require 'ruby_gpg2/key' require 'ruby_gpg2/user_id' module RubyGPG2 class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end def configure yield(configuration) end def reset! @configuration = nil end end module ClassMethods def generate_key(opts = {}) Commands::GenerateKey.new.execute(opts) end def list_public_keys(opts = {}) Commands::ListPublicKeys.new.execute(opts) end def list_secret_keys(opts = {}) Commands::ListSecretKeys.new.execute(opts) end end extend ClassMethods def self.included(other) other.extend(ClassMethods) end class Configuration attr_accessor :binary, :logger, :stdin, :stdout, :stderr def initialize @binary = 'gpg' @stdin = '' @stdout = $stdout @stderr = $stderr end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_gpg2-0.1.0.pre.17 | lib/ruby_gpg2.rb |
ruby_gpg2-0.1.0.pre.16 | lib/ruby_gpg2.rb |
ruby_gpg2-0.1.0.pre.15 | lib/ruby_gpg2.rb |