Class: Middleman::Deploy::Strategies::Git::ForcePush
- Defined in:
- lib/middleman-deploy/strategies/git/force_push.rb
Instance Attribute Summary
Attributes inherited from Base
#branch, #build_dir, #commit_message, #remote
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Middleman::Deploy::Strategies::Git::Base
Instance Method Details
#process ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/middleman-deploy/strategies/git/force_push.rb', line 6 def process Dir.chdir(self.build_dir) do add_remote_url checkout_branch commit_branch('-f') end end |