Skip to content

Instantly share code, notes, and snippets.

@UshF
Created March 12, 2014 16:17
Show Gist options
  • Save UshF/9510320 to your computer and use it in GitHub Desktop.
Save UshF/9510320 to your computer and use it in GitHub Desktop.
trying to find chef representation of field updated_at for a specific recipe
knife exec -E '(api.get "/cookbooks/rsyslog/").each { |response| pp response }'
["rsyslog",
{"url"=>"https://192.168.112.11/cookbooks/rsyslog",
"versions"=>
[{"version"=>"1.10.2",
"url"=>"https://192.168.112.11/cookbooks/rsyslog/1.10.2"},
{"version"=>"1.9.1",
"url"=>"https://192.168.112.11/cookbooks/rsyslog/1.9.1"}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment