Class: Git::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-ykutility/command/push/yk_git_manager.rb

Instance Method Summary collapse

Instance Method Details

#is_cleanObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/cocoapods-ykutility/command/push/yk_git_manager.rb', line 6

def is_clean
  cmd = "git status --short"
  @cmd_out_put = []
  IO.popen(cmd) do |f|
    line = f.gets
    @cmd_out_put << line unless line.blank?
  end

  @cmd_out_put.blank?
end