Module: RubyGitCrypt::Options
- Defined in:
- lib/ruby_git_crypt/options.rb,
lib/ruby_git_crypt/options/name.rb,
lib/ruby_git_crypt/options/sets.rb,
lib/ruby_git_crypt/options/types.rb,
lib/ruby_git_crypt/options/values.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/options/definitions.rb,
lib/ruby_git_crypt/options/values/base.rb,
lib/ruby_git_crypt/options/values/string.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: Sets, Types, Values
Classes: Definition, Factory, Name
Constant Summary
collapse
- DEFINITIONS =
definition(name: '-e', option_type: :flag, value_type: :boolean,
override_keys: { singular: :encrypted_only }),
definition(name: '-u', option_type: :flag, value_type: :boolean,
override_keys: { singular: :unencrypted_only }),
%w[
--all
--fix
--force
--no-commit
--trusted
].map do |o|
definition(name: o, option_type: :flag, value_type: :boolean)
end,
%w[
--key-name
].map do |o|
definition(name: o, option_type: :standard, value_type: :string)
end
].flatten.freeze
Class Method Summary
collapse
Class Method Details
.definition(opts) ⇒ Object
16
17
18
|
# File 'lib/ruby_git_crypt/options.rb', line 16
def self.definition(opts)
Definition.new(opts)
end
|
.name(name) ⇒ Object
12
13
14
|
# File 'lib/ruby_git_crypt/options.rb', line 12
def self.name(name)
Name.new(name)
end
|
.types ⇒ Object
20
21
22
|
# File 'lib/ruby_git_crypt/options.rb', line 20
def self.types
Types
end
|
.values ⇒ Object
24
25
26
|
# File 'lib/ruby_git_crypt/options.rb', line 24
def self.values
Values
end
|