lib/engineyard-serverside/lockfile_parser.rb in engineyard-serverside-1.5.24 vs lib/engineyard-serverside/lockfile_parser.rb in engineyard-serverside-1.5.25
- old
+ new
@@ -13,9 +13,13 @@
def initialize(lockfile_contents)
@contents = lockfile_contents
parse
end
+ def has_ey_config?
+ @contents.index(/^\s+ey_config\s\([^\)]+\)$/)
+ end
+
def any_database_adapter?
any_ruby_adapter = %w[mysql2 mysql do_mysql pg do_postgres].any? do |type|
@contents.index(/^\s+#{type}\s\([^\)]+\)$/)
end