Grunt tasks for working with the Rackspace Cloud Api
npm install grunt-rackspace
Add the following line to your grunt.js file
rackspace task is now available, for example
There is also
grunt rackspace --debug
if you want to see debug output.
Options are placed in the
grunt.initConfig section of your
grunt.js file in the
rackspace :config :authUser : "someCoolUser"authKey : "1234567890abcdef1234567890abcdef"upload :remotedir : "container"testfiles :filename : "test/*"remotedir : "site"
authUserThis is a rackspace username
authKeyThis is a rackspace Api key
authUrlUrl of the rackspace cloud authentication service
upload is a multitask that organizes files into named groups. Example:
...upload_options :remotedir : "container"localdir : "files"images :filename : "images/*"css :filename : "css/*"html :filename : "*"localdir : "html"disclaimer :filename : "disclaimer.txt"remotedir : "misc"...
remotedirThe location of the remote file:
localdirThe location of the local file. This path is removed from the remote file location.
fun/index.htmlto show up remotely as just
filename : "index.html"and
localdir : "fun"
upload._options.remotedirtop-level starting point (or container) for all remote files
upload._options.localdirtop-level version of
localdir(affects all files)
Filenames use the minimatch syntax for matching multiple files