Anytime I ran the sinatra::configure command on opsworks. The chef configuration failed with the following error(I've only pasted part of the stack trace):
ERROR: Error loading cookbook sinatra: wrong number of arguments (1 for 2)
/opt/aws/opsworks/current/merged-cookbooks/sinatra/metadata.rb:9:in `metadata_from'
To fix this I updated the recipe lines in the metadata.rb to read as follows:
recipe "sinatra::configure", "one time, makes all the deploy folders"
recipe "sinatra::deploy", "uses scm to update the codebase, bundle installs, and restarts the server"
Kindly merge these changes into your master branch to avoid this issue.