Class: Middleman::Deploy::Methods::Git
- Defined in:
- lib/middleman-deploy/methods/git.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Middleman::Deploy::Methods::Base
Instance Method Details
#process ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/middleman-deploy/methods/git.rb', line 5 def process puts "## Deploying via git to remote=\"#{self..remote}\" and branch=\"#{self..branch}\"" camelized_strategy = self..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..remote, self..branch, self..) strategy_instance.process end |