Method: Intent::Core::Projects#sync!

Defined in:
lib/intent/core/projects.rb

#sync!Object



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/intent/core/projects.rb', line 24

def sync!
  ledger_file = File.basename(ledger_path)

  if repo.status.changed?(ledger_file)
    repo.add(ledger_file)
    repo.commit("Synchronizing projects [#{Time.new}]")
    repo.push
    true # Result:OK
  else
    false # Result::NO_CHANGES
  end
end