jets runner

Usage

jets runner

Description

Run Ruby code in the context of Jets app non-interactively.

Examples

$ jets runner 'puts "hi"'
hi
$ jets runner 'puts Jets.env'
development

Using a script in a file. Let’s say you have a script:

script.rb:

puts "hello world: #{Jets.env}"
$ jets runner file://script.rb
hello world: development

Options

[--noop], [--no-noop]  

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub, and contributions are encouraged and welcomed. We love pull requests from you!