Giter VIP home page Giter VIP logo

grunt-rackspace's Introduction

#grunt-rackspace

Grunt tasks for working with the Rackspace Cloud Api

###Installation

  1. Change directories to the root directory of your project.
  2. npm install grunt-rackspace

###Usage

Add the following line to your Gruntfile

grunt.loadNpmTasks('grunt-rackspace')

The rackspace task is now available, for example

grunt rackspace

There is also grunt rackspace --debug if you want to see debug output.

###Options

Options are placed in the grunt.initConfig section of your Gruntfile in the rackspace object.

Example:

rackspace : {
  config : {
    authUser : "someCoolUser",
    authKey : "1234567890abcdef1234567890abcdef"
  },
  upload : {
    remotedir : "container"
    testfiles : {
      filename : "test/*",
      remotedir : "site"
    }
  }
}

####config

Required options:

  • authUser This is a rackspace username
  • authKey This is a rackspace Api key

Other options:

  • authUrl Url of the rackspace cloud authentication service

####upload

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"
  }
}
...

Required options:

  • filename

Other options:

  • remotedir The location of the remote file: container/dir/subdir/subsubdir, etc.
  • localdir The location of the local file. This path is removed from the remote file location.
  • For example, if you want a local file fun/index.html to show up remotely as just index.html, set filename : "index.html" and localdir : "fun"
  • upload._options.remotedir top-level starting point (or container) for all remote files
  • upload._options.localdir top-level version of localdir (affects all files)

Filenames use the minimatch syntax for matching multiple files

grunt-rackspace's People

Contributors

adamstallard avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.