module GitCompound::Command
GitCompount command facade
Debug cases for Command
Public Instance Methods
build(manifest, opts = {})
click to toggle source
# File lib/git_compound/command.rb, line 5 def build(manifest, opts = {}) run(Procedure::Build, opts.merge(manifest: manifest)) end
check(manifest, opts = {})
click to toggle source
# File lib/git_compound/command.rb, line 13 def check(manifest, opts = {}) run(Procedure::Check, opts.merge(manifest: manifest)) end
help(opts = {})
click to toggle source
# File lib/git_compound/command.rb, line 21 def help(opts = {}) run(Procedure::Help, opts) end
run(procedure, opts)
click to toggle source
# 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 = {})
click to toggle source
# File lib/git_compound/command.rb, line 17 def show(manifest, opts = {}) run(Procedure::Show, opts.merge(manifest: manifest)) end
update(manifest, opts = {})
click to toggle source
# File lib/git_compound/command.rb, line 9 def update(manifest, opts = {}) run(Procedure::Update, opts.merge(manifest: manifest)) end