lib/middleman-deploy/strategies/git/base.rb in middleman-deploy-0.2.4 vs lib/middleman-deploy/strategies/git/base.rb in middleman-deploy-0.3.0
- old
+ new
@@ -14,11 +14,11 @@
def process
raise NotImplementedError
end
- protected
+ protected
def add_signature_to_commit_message(base_message)
signature = "#{Middleman::Deploy::PACKAGE} #{Middleman::Deploy::VERSION}"
time = "#{Time.now.utc}"
@@ -32,17 +32,16 @@
else
`git checkout -b #{self.branch}`
end
end
- def commit_branch(options='')
+ def commit_branch(options = '')
message = self.commit_message ? self.commit_message : add_signature_to_commit_message('Automated commit')
`git add -A`
`git commit --allow-empty -am "#{message}"`
`git push #{options} origin #{self.branch}`
end
-
end
end
end
end
end