add ability to set custom commit message for git deploys

issue #64
This commit is contained in:
Nihad Abbasov 2014-05-24 23:35:14 +05:00
parent 08e392fc6b
commit efd66e7fca
4 changed files with 11 additions and 8 deletions

View file

@ -8,7 +8,7 @@ module Middleman
camelized_strategy = self.options.strategy.to_s.split('_').map { |word| word.capitalize}.join
strategy_class_name = "Middleman::Deploy::Strategies::Git::#{camelized_strategy}"
strategy_instance = strategy_class_name.constantize.new(self.server_instance.build_dir, self.options.remote, self.options.branch)
strategy_instance = strategy_class_name.constantize.new(self.server_instance.build_dir, self.options.remote, self.options.branch, self.options.commit_message)
strategy_instance.process
end