lib/middleman-deploy/strategies/git/submodule.rb in middleman-deploy-0.2.4 vs lib/middleman-deploy/strategies/git/submodule.rb in middleman-deploy-0.3.0

- old
+ new

@@ -1,22 +1,21 @@ module Middleman module Deploy module Strategies module Git class Submodule < Base - def process Dir.chdir(self.build_dir) do checkout_branch pull_submodule commit_branch end commit_submodule end - private + private def commit_submodule current_branch = `git rev-parse --abbrev-ref HEAD` message = add_signature_to_commit_message('Deployed') @@ -34,10 +33,9 @@ if $?.exitstatus == 1 puts "Can't deploy! Please resolve conflicts. Then process to manual commit and push on #{self.branch} branch." exit end end - end end end end end