Project

chewbacca

0.0
No commit activity in last 3 years
No release in over 3 years
chewbacca is a set of rake tasks that read a manifest file and synchronize the current directory to the remote server according to a specified mapping.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

chewbacca¶ ↑

Chewbacca is a set of rake tasks that will push/pull files in the current directoy from/to a remote server according to an arbitrary manifest file (manifest.rb)

Dependencies¶ ↑

  • scp

  • public key authentication (unless you love typing passwords)

Installation¶ ↑

Install the gem:

gem install chewbacca

Require and include it in your Rakefile (create one if you don’t have one)

require 'chewbacca'
include Chewbacca

Create a file named manifest.rb, this file needs to declare three constants: MANIFEST, USER, and HOST. Example:

USER = "deploy"
HOST = "example.com"
MANIFEST = {
   "path/to/local-file-1" => "path/to/remote/file-1",
   "path/to/local-file-2" => "path/to/remote/file-2"
}

Usage¶ ↑

To move the files from the left of the manifest, to the right (local to remote), run

rake chewbacca:push

To do the opposite, download the files from the right of the manifest to the left (remote to local)

rake chewbacca:pull

Notes¶ ↑

Keep in mind when configuring manifest paths that the underlying mechanism is scp, in the format of scp local-file user@host:remote-file.

Copyright © 2010 Julio Capote See LICENSE for details.