Module: Avm::Launcher::Git::Base::Underlying

Included in:
Avm::Launcher::Git::Base
Defined in:
lib/avm/launcher/git/base/underlying.rb

Instance Method Summary collapse

Instance Method Details

#command(*args) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/avm/launcher/git/base/underlying.rb', line 13

def command(*args)
  args, options = build_args(args)
  r = ::EacGit::Executables.git.command(*args)
  (options[:exit_outputs] || {}).each do |status_code, result|
    r = r.status_result(status_code, result)
  end
  r
end

#execute(*args) ⇒ Object



22
23
24
# File 'lib/avm/launcher/git/base/underlying.rb', line 22

def execute(*args)
  command(*args).execute
end

#execute!(*args) ⇒ Object



26
27
28
# File 'lib/avm/launcher/git/base/underlying.rb', line 26

def execute!(*args)
  command(*args).execute!
end

#initObject



34
35
36
37
# File 'lib/avm/launcher/git/base/underlying.rb', line 34

def init
  git
  self
end

#system!(*args) ⇒ Object



30
31
32
# File 'lib/avm/launcher/git/base/underlying.rb', line 30

def system!(*args)
  command(*args).system!
end