Module: Avmtrf1::Patches::EacLauncher::Git::Base::InstanceMethods

Defined in:
lib/avmtrf1/patches/eac_launcher/git/base.rb

Instance Method Summary collapse

Instance Method Details

#command(*args) ⇒ Object



29
30
31
32
# File 'lib/avmtrf1/patches/eac_launcher/git/base.rb', line 29

def command(*args)
  args, _options = build_args(args)
  ::EacRubyUtils::Envs.local.command(*args)
end

#execute(*args) ⇒ Object



19
20
21
22
# File 'lib/avmtrf1/patches/eac_launcher/git/base.rb', line 19

def execute(*args)
  args, options = build_args(args)
  ::EacRubyUtils::Envs.local.command(*args).execute(options)
end

#status_filesObject



34
35
36
37
38
# File 'lib/avmtrf1/patches/eac_launcher/git/base.rb', line 34

def status_files
  execute!('-c', 'core.quotepath=off', 'status', '--porcelain').each_line.map do |line|
    parse_status_file(line)
  end
end

#system(*args) ⇒ Object



24
25
26
27
# File 'lib/avmtrf1/patches/eac_launcher/git/base.rb', line 24

def system(*args)
  args, options = build_args(args)
  ::EacRubyUtils::Envs.local.command(*args).system(options)
end