Module: GitCompound::Command
- Extended by:
- Logger::Debugger
- Included in:
- GitCompound
- Defined in:
- lib/git_compound.rb,
lib/git_compound/command.rb,
lib/git_compound/command/options.rb,
lib/git_compound/logger/debug/command.rb,
lib/git_compound/command/procedure/help.rb,
lib/git_compound/command/procedure/show.rb,
lib/git_compound/logger/debug/procedure.rb,
lib/git_compound/command/procedure/build.rb,
lib/git_compound/command/procedure/check.rb,
lib/git_compound/command/procedure/tasks.rb,
lib/git_compound/command/arguments/parser.rb,
lib/git_compound/command/procedure/update.rb,
lib/git_compound/command/arguments/type/type.rb,
lib/git_compound/command/procedure/procedure.rb,
lib/git_compound/command/procedure/build_lock.rb,
lib/git_compound/command/procedure/element/lock.rb,
lib/git_compound/command/procedure/build_manifest.rb,
lib/git_compound/command/procedure/element/option.rb,
lib/git_compound/command/procedure/element/manifest.rb,
lib/git_compound/command/arguments/type/argument/string.rb,
lib/git_compound/command/procedure/element/subprocedure.rb,
lib/git_compound/command/arguments/type/parameter/string.rb,
lib/git_compound/command/arguments/type/argument/argument.rb,
lib/git_compound/command/arguments/type/parameter/boolean.rb,
lib/git_compound/command/arguments/type/parameter/parameter.rb
Overview
Defined Under Namespace
Modules: Arguments, Procedure
Classes: Options
Instance Method Summary
collapse
debug_after, debug_before
Instance Method Details
#build(manifest, opts = {}) ⇒ Object
5
6
7
|
# File 'lib/git_compound/command.rb', line 5
def build(manifest, opts = {})
run(Procedure::Build, opts.merge(manifest: manifest))
end
|
#check(manifest, opts = {}) ⇒ Object
13
14
15
|
# File 'lib/git_compound/command.rb', line 13
def check(manifest, opts = {})
run(Procedure::Check, opts.merge(manifest: manifest))
end
|
#help(opts = {}) ⇒ Object
21
22
23
|
# File 'lib/git_compound/command.rb', line 21
def help(opts = {})
run(Procedure::Help, opts)
end
|
#run(procedure, opts) ⇒ Object
25
26
27
28
29
|
# File 'lib/git_compound/command.rb', line 25
def run(procedure, opts)
procedure.new(opts).execute!
rescue GitCompoundError => e
abort "Error: #{e.message}".on_red.white.bold
end
|
#show(manifest, opts = {}) ⇒ Object
17
18
19
|
# File 'lib/git_compound/command.rb', line 17
def show(manifest, opts = {})
run(Procedure::Show, opts.merge(manifest: manifest))
end
|
#update(manifest, opts = {}) ⇒ Object
9
10
11
|
# File 'lib/git_compound/command.rb', line 9
def update(manifest, opts = {})
run(Procedure::Update, opts.merge(manifest: manifest))
end
|