Permalink
Browse files

generate cf manifest.yml after everything so other scrolls can contri…

…bute to it
  • Loading branch information...
1 parent 35f2284 commit 01761f61ebc2fb3d136803b78dd988f1d7cf6cbe @drnic committed Mar 30, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 scrolls/cf.rb
View
@@ -19,7 +19,7 @@
exit_now = true
end
-manifest = {"applications"=>
+$cf_manifest = {"applications"=>
{"."=>
{"name"=>@name,
"framework"=>
@@ -33,12 +33,10 @@
known_services.each do |service|
if scroll? service
- manifest["applications"]["."]["services"]["#{@name}-#{service}"] = {"type"=>service}
+ $cf_manifest["applications"]["."]["services"]["#{@name}-#{service}"] = {"type"=>service}
end
end
-create_file "manifest.yml", manifest.to_yaml
-
db_username = config['pg_username'] || 'root'
db_password = config['pg_password'] || ''
@@ -64,6 +62,8 @@
end
after_everything do
+ create_file "manifest.yml", $cf_manifest.to_yaml
+
run "rake assets:precompile"
if jruby?
run "warble"

0 comments on commit 01761f6

Please sign in to comment.