Module: EacLauncher::Git::Base::Underlying

Included in:
EacLauncher::Git::Base
Defined in:
lib/eac_launcher/git/base/underlying.rb

Instance Method Summary collapse

Instance Method Details

#command(*args) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/eac_launcher/git/base/underlying.rb', line 12

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



21
22
23
# File 'lib/eac_launcher/git/base/underlying.rb', line 21

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

#execute!(*args) ⇒ Object



25
26
27
# File 'lib/eac_launcher/git/base/underlying.rb', line 25

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

#initObject



33
34
35
36
# File 'lib/eac_launcher/git/base/underlying.rb', line 33

def init
  git
  self
end

#system!(*args) ⇒ Object



29
30
31
# File 'lib/eac_launcher/git/base/underlying.rb', line 29

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