Sha256: cfacd24deea0269684f9b0e1a36a434117d4679ed410b0fe05dd8de5032dd8e7

Contents?: true

Size: 514 Bytes

Versions: 164

Compression:

Stored size: 514 Bytes

Contents

Examples:

Run `puts Rails.env` after loading the app:

  <%= executable %> 'puts Rails.env'

Run the Ruby file located at `path/to/filename.rb` after loading the app:

  <%= executable %> path/to/filename.rb

Run the Ruby script read from stdin after loading the app:
  <%= executable %> -

<% unless Gem.win_platform? %>
You can also use the runner command as a shebang line for your executables:

  #!/usr/bin/env <%= File.expand_path(executable) %>

  Product.all.each { |p| p.price *= 2 ; p.save! }
<% end %>

Version data entries

164 entries across 152 versions & 11 rubygems

Version Path
railties-7.0.8.7 lib/rails/commands/runner/USAGE
railties-7.0.8.6 lib/rails/commands/runner/USAGE
railties-6.1.7.10 lib/rails/commands/runner/USAGE
railties-6.1.7.9 lib/rails/commands/runner/USAGE
railties-7.0.8.5 lib/rails/commands/runner/USAGE
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/runner/USAGE
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/runner/USAGE
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/runner/USAGE
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/commands/runner/USAGE
railties-7.0.8.4 lib/rails/commands/runner/USAGE
railties-6.1.7.8 lib/rails/commands/runner/USAGE
railties-7.0.8.1 lib/rails/commands/runner/USAGE
railties-6.1.7.7 lib/rails/commands/runner/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.2.3/lib/rails/commands/runner/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/commands/runner/USAGE
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/runner/USAGE
railties-7.0.8 lib/rails/commands/runner/USAGE
railties-7.0.7.2 lib/rails/commands/runner/USAGE
railties-6.1.7.6 lib/rails/commands/runner/USAGE
railties-7.0.7.1 lib/rails/commands/runner/USAGE