I created these rake tasks for shipping a static data bag configuration in a chef-repo. In my company we autoconfigure remote chef servers from chef-repos, where these came in handy. They wrap some knife data bag functionality and help creating a folder structure with json stubs.
I did not include databag:upload_all into the install task. This would be your decision, if you like my code.