Module: RubyGitCrypt

Extended by:
ClassMethods
Defined in:
lib/ruby_git_crypt.rb,
lib/ruby_git_crypt/errors.rb,
lib/ruby_git_crypt/options.rb,
lib/ruby_git_crypt/version.rb,
lib/ruby_git_crypt/commands.rb,
lib/ruby_git_crypt/options/name.rb,
lib/ruby_git_crypt/options/sets.rb,
lib/ruby_git_crypt/commands/base.rb,
lib/ruby_git_crypt/commands/init.rb,
lib/ruby_git_crypt/commands/lock.rb,
lib/ruby_git_crypt/options/types.rb,
lib/ruby_git_crypt/options/values.rb,
lib/ruby_git_crypt/commands/status.rb,
lib/ruby_git_crypt/commands/unlock.rb,
lib/ruby_git_crypt/options/factory.rb,
lib/ruby_git_crypt/options/definition.rb,
lib/ruby_git_crypt/options/types/flag.rb,
lib/ruby_git_crypt/commands/export_key.rb,
lib/ruby_git_crypt/options/definitions.rb,
lib/ruby_git_crypt/options/values/base.rb,
lib/ruby_git_crypt/commands/add_gpg_user.rb,
lib/ruby_git_crypt/options/values/string.rb,
lib/ruby_git_crypt/errors/execution_error.rb,
lib/ruby_git_crypt/options/types/standard.rb,
lib/ruby_git_crypt/options/values/boolean.rb,
lib/ruby_git_crypt/options/values/complex.rb,
lib/ruby_git_crypt/options/values/key_value.rb

Defined Under Namespace

Modules: ClassMethods, Commands, Errors, Options Classes: Configuration

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Methods included from ClassMethods

add_gpg_user, export_key, init, lock, status, unlock

Class Method Details

.configurationObject



10
11
12
# File 'lib/ruby_git_crypt.rb', line 10

def configuration
  @configuration ||= Configuration.new
end

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

Yields:



14
15
16
# File 'lib/ruby_git_crypt.rb', line 14

def configure
  yield(configuration)
end

.included(other) ⇒ Object



63
64
65
# File 'lib/ruby_git_crypt.rb', line 63

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

.reset!Object



18
19
20
# File 'lib/ruby_git_crypt.rb', line 18

def reset!
  @configuration = nil
end