lib/dpl/provider.rb in dpl-1.6.6.travis.500.1 vs lib/dpl/provider.rb in dpl-1.6.6.travis.507.1
- old
+ new
@@ -26,10 +26,11 @@
autoload :Ninefold, 'dpl/provider/ninefold'
autoload :Hackage, 'dpl/provider/hackage'
autoload :Deis, 'dpl/provider/deis'
autoload :GCS, 'dpl/provider/gcs'
autoload :GAE, 'dpl/provider/gae'
+ autoload :ElasticBeanstalk, 'dpl/provider/elastic_beanstalk'
def self.new(context, options)
return super if self < Provider
context.fold("Installing deploy dependencies") do
@@ -120,9 +121,13 @@
uncleanup
end
def sha
@sha ||= ENV['TRAVIS_COMMIT'] || `git rev-parse HEAD`.strip
+ end
+
+ def commit_msg
+ @commit_msg ||= %x{git log #{sha} -n 1 --pretty=%B}.strip
end
def cleanup
return if options[:skip_cleanup]
context.shell "mv .dpl ~/dpl"