Class: Middleman::Deploy::Strategies::Git::ForcePush

Inherits:
Base
  • Object
show all
Defined in:
lib/middleman-deploy/strategies/git/force_push.rb

Instance Attribute Summary

Attributes inherited from Base

#branch, #build_dir, #remote

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Middleman::Deploy::Strategies::Git::Base

Instance Method Details

#processObject



7
8
9
10
11
12
13
# File 'lib/middleman-deploy/strategies/git/force_push.rb', line 7

def process
  Dir.chdir(self.build_dir) do
    add_remote_url
    checkout_branch
    commit_branch('-f')
  end
end