Class: Bagboy::Core::SCM::Git
- 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, ) execute_command "cd #{Bagboy.chef_repo}; git add '#{clean_filename file}'; git commit '#{clean_filename file}' -m '#{}'; git push" end |
#pull ⇒ Object
10 11 12 |
# File 'lib/bagboy/core/scm/git.rb', line 10 def pull execute_command "cd #{Bagboy.chef_repo}; git pull" end |