Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Handbook: Library

Naja Melan edited this page May 2, 2014 · 2 revisions

To access the rush objects from within any Ruby program:

require path_to_rush_repo_checkout + 'rush/lib/rush'

The shell starts you in a local context. To use the library, you need to create this context first:

local = Rush::Box.new('localhost')
local['/Users/adam/new_file.txt'].create.write "Hello, world"

Previous: Bash - Next: Environment

source: https://web.archive.org/web/http://rush.heroku.com/handbook/library

Clone this wiki locally