Class: Bagboy::Core::SCM::Git

Inherits:
Base
  • Object
show all
Includes:
Singleton
Defined in:
lib/bagboy/core/scm/git.rb

Instance Method Summary collapse

Instance Method Details

#commit(file, message) ⇒ Object



14
15
16
# File 'lib/bagboy/core/scm/git.rb', line 14

def commit( file, message )
  execute_command "cd #{Bagboy.chef_repo}; git add '#{clean_filename file}'; git commit '#{clean_filename file}' -m '#{message}'; git push"
end

#pullObject



10
11
12
# File 'lib/bagboy/core/scm/git.rb', line 10

def pull
  execute_command "cd #{Bagboy.chef_repo}; git pull"
end