I'm using the new application_ruby cookbook to deploy a rails app.Following is the experimental recipe:gem_package "bundler"
application "myapp" dopath "/var/www/rails_apps/myapp"owner "ubuntu"group "admin"bundler truerepository "https://github.com/bcardarella/ember-railsapi"revision "master"precompile_assets truerails dodatabase dodatabase "myapp_prod"username "myapp"password "sekret"enddatabase_master_role "myapp_database_master"endunicorn dobundler trueendnginx_load_balancer doonly_if { node['roles'].include?('myapp_load_balancer') }endendTHis is the error:NameError---------No resource found for bundler. Tried application_bundler, application_ruby_bundler, application_nginx_bundler, bundlerCookbook Trace:---------------/var/chef/cache/cookbooks/application/resources/default.rb:121:in `method_missing'/var/chef/cache/cookbooks/myapp/recipes/default.rb:14:in `block in from_file'/var/chef/cache/cookbooks/myapp/recipes/default.rb:10:in `from_file'Relevant File Content:----------------------/var/chef/cache/cookbooks/application/resources/default.rb:114: if e.name == resource_name.to_sym || e.inspect =~ /\b#{resource_name}\b/115: next116: else117: raise e118: end119: end120: end121>> raise NameError, "No resource found for #{name}. Tried #{lookup_path.join(', ')}" unless resource122: # Enforce action :nothing in case people forget123: resource.action :nothing124: # Make this a weakref to prevent a cycle between the application resource and the sub resources125: resource.application WeakRef.new(self)126: resource.type name127: << resource128: resource129: end130:[2013-01-19T16:59:15+05:45] ERROR: Running exception handlers[2013-01-19T16:59:15+05:45] FATAL: Saving node information to /var/chef/cache/failed-run-data.json[2013-01-19T16:59:15+05:45] ERROR: Exception handlers complete[2013-01-19T16:59:16+05:45] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out[2013-01-19T16:59:16+05:45] FATAL: NameError: No resource found for bundler. Tried application_bundler, application_ruby_bundler, application_nginx_bundler, bundler-------------------------------------------@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.comSent with Sparrow
Archive powered by MHonArc 2.6.16.