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
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
railties-5.2.4 lib/rails/commands/runner/USAGE
railties-6.0.2.rc1 lib/rails/commands/runner/USAGE
railties-5.2.4.rc1 lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/railties-6.0.1/lib/rails/commands/runner/USAGE
railties-6.0.1 lib/rails/commands/runner/USAGE
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
railties-6.0.1.rc1 lib/rails/commands/runner/USAGE
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/runner/USAGE
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/railties-6.0.0/lib/rails/commands/runner/USAGE
railties-6.0.0 lib/rails/commands/runner/USAGE