Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple guard library for syncing local and remote directories via SFTP

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

guard-flopbox

Flopbox is a simple guard library that syncs local and remote directories via SFTP as files are changed.

Usage

This is a sample guardfile

opts = {
  :hostname    => "postercloud.com",    # remote host 
  :user        => "capuser",            # remote user
  :sftp_opts   => {},                   # options passed to Net::SFTP
  :remote      => "/home/capuser/test", # remote directory
  :debug       => true,                 # output debug information
  :growl       => true,                 # growl on completion
  :growl_image => "/path/to/image"      # image to use for growl 
}

group 'flopbox' do
  guard 'flopbox', opts do
    watch(/.*/)
  end
end

Dependencies

  • guard
  • Net::SFTP
  • growl

Author

Flopbox was written by Vincent Chu (vincentchu [at] gmail [dot] com) and is used at Posterous.

Something went wrong with that request. Please try again.