Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Latest commit

 

History

History
42 lines (25 loc) · 1.06 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.06 KB

Capistrano::Fastly Build Status

Capistrano tasks for interacting with Fastly, a CDN/caching service.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-fastly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-fastly

Usage

The only task at the moment is purge_all which flushes the entire cache for a single site.

Add this to your deploy.rb file with your real service id and api key:

    require 'capistrano/fastly'

    set :fastly_config, { 
        :service_id => '----', 
        :api_key => '----' 
    }

Then you'll be able to call this task directly:

    cap fastly:purge_all

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request