Module: EY::Serverside::Strategies::Git::Helpers
- Defined in:
- lib/engineyard-serverside/strategies/git.rb
Instance Method Summary collapse
- #create_revision_file_command ⇒ Object
- #short_log_message(revision) ⇒ Object
- #strategy ⇒ Object
- #update_repository_cache ⇒ Object
Instance Method Details
#create_revision_file_command ⇒ Object
15 16 17 |
# File 'lib/engineyard-serverside/strategies/git.rb', line 15 def create_revision_file_command strategy.create_revision_file_command(c.release_path) end |
#short_log_message(revision) ⇒ Object
19 20 21 |
# File 'lib/engineyard-serverside/strategies/git.rb', line 19 def (revision) strategy.(revision) end |
#strategy ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/engineyard-serverside/strategies/git.rb', line 23 def strategy klass = Module.nesting[1] # Use [] to access attributes instead of calling methods so # that we get nils instead of NoMethodError. # # Rollback doesn't know about the repository location (nor # should it need to), but it would like to use #short_log_message. klass.new( :repository_cache => c[:repository_cache], :app => c[:app], :repo => c[:repo], :ref => c[:branch] ) end |
#update_repository_cache ⇒ Object
9 10 11 12 13 |
# File 'lib/engineyard-serverside/strategies/git.rb', line 9 def update_repository_cache unless strategy.fetch && strategy.checkout abort "*** [Error] Git could not checkout (#{strategy.to_checkout}) ***" end end |