Socket
Book a DemoInstallSign in
Socket

rake-repl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rake-repl

0.3.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Rake REPL

Interactive Rake prompt. Load your Rake environment once, and get a nice REPL.

Install

gem install rake-repl

If you have rlwrap installed you'll get the full benefits of readline: history, reverse searches, etc.

Custom prompt/colors support via the colorize gem:

gem install colorize
export RAKE_REPL_PROMPT="[red:rake][blue: >>][ ]"

Usage

Simply replace rake with rake-repl.

The REPL

Example run against the test Rakefile included in the project.

$ rake-repl 
rake >> list
coordinates[x,y]
env:is:reset
list

rake >> coordinates[1,2]
Draw pixel at [1,2]

rake >> coordinates[1,2] env:is:reset
Draw pixel at [1,2]
ENV['STEP']: 0

rake >> env:is:reset STEP=2
ENV['STEP']: 2

rake >> env:is:reset
ENV['STEP']: 0

rake >> exit
Use Ctrl-D (i.e. EOF) to exit

TODO

  • Running -T does not work - for some reason, when the tasks aren't loaded with rake, the comments are not loaded properly.

Credit

  • Chris Wanstrath for a nice implementation of a REPL that I heavily based myself on.

Author

Vincent Roy :: vince@vroy.ca

FAQs

Package last updated on 09 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.