Sha256: 1b970265f484756b9fe1b9f0f67e28b67111ca6ff21e51f25b14b1a6c34f56e3

Contents?: true

Size: 687 Bytes

Versions: 23

Compression:

Stored size: 687 Bytes

Contents

## 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:

```ruby
puts "hello world: #{Jets.env}"
```

    $ jets runner file://script.rb
    hello world: development


Optionally pass in an argument on the command line:

    Usage: jets runner file|Ruby code [args]

The argument will be assigned to the `args` variable.

Example:

    $ jets runner 'puts "hello world with args: #{args}"' 123
    hello world with args: 123


Example with script.rb:

```ruby
puts "hello world with args: #{args}"
```

    $ jets runner file://script.rb 123
    hello world with args: 123

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
jets-4.0.12 lib/jets/commands/help/runner.md
jets-4.0.11 lib/jets/commands/help/runner.md
jets-5.0.13 lib/jets/command/help/runner.md
jets-5.0.12 lib/jets/command/help/runner.md
jets-5.0.11 lib/jets/command/help/runner.md
jets-5.0.10 lib/jets/command/help/runner.md
jets-5.0.9 lib/jets/command/help/runner.md
jets-5.0.8 lib/jets/command/help/runner.md
jets-5.0.7 lib/jets/command/help/runner.md
jets-5.0.6 lib/jets/command/help/runner.md
jets-5.0.5 lib/jets/command/help/runner.md
jets-5.0.4 lib/jets/command/help/runner.md
jets-5.0.3 lib/jets/command/help/runner.md
jets-5.0.2 lib/jets/command/help/runner.md
jets-5.0.1 lib/jets/command/help/runner.md
jets-5.0.0 lib/jets/command/help/runner.md
jets-4.0.10 lib/jets/commands/help/runner.md
jets-5.0.0.beta1 lib/jets/command/help/runner.md
jets-4.0.9 lib/jets/commands/help/runner.md
jets-4.0.8 lib/jets/commands/help/runner.md