Module: EacLauncher::Git::Base::DirtyFiles

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

Instance Method Summary collapse

Instance Method Details

#dirty?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/eac_launcher/git/base/dirty_files.rb', line 9

def dirty?
  dirty_files.any?
end

#dirty_filesObject



13
14
15
16
17
# File 'lib/eac_launcher/git/base/dirty_files.rb', line 13

def dirty_files
  execute!('status', '--porcelain', '--untracked-files').each_line.map do |line|
    parse_status_line(line.gsub(/\n\z/, ''))
  end
end