Sha256: eab1743c7c991c9349c206a51f623fcd912bfa02e6fa8aefc5ba1b9943c8699f

Contents?: true

Size: 659 Bytes

Versions: 39

Compression:

Stored size: 659 Bytes

Contents

Description:
    The Rails `runner` allows running Ruby code in the context of your application.

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

39 entries across 39 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/commands/runner/USAGE
railties-8.0.1 lib/rails/commands/runner/USAGE
railties-8.0.0.1 lib/rails/commands/runner/USAGE
railties-7.2.2.1 lib/rails/commands/runner/USAGE
railties-7.1.5.1 lib/rails/commands/runner/USAGE
railties-8.0.0 lib/rails/commands/runner/USAGE
railties-7.2.2 lib/rails/commands/runner/USAGE
railties-7.1.5 lib/rails/commands/runner/USAGE
railties-8.0.0.rc2 lib/rails/commands/runner/USAGE
railties-7.2.1.2 lib/rails/commands/runner/USAGE
railties-7.1.4.2 lib/rails/commands/runner/USAGE
railties-8.0.0.rc1 lib/rails/commands/runner/USAGE
railties-7.2.1.1 lib/rails/commands/runner/USAGE
railties-7.1.4.1 lib/rails/commands/runner/USAGE
railties-8.0.0.beta1 lib/rails/commands/runner/USAGE
omg-railties-8.0.0.alpha9 lib/rails/commands/runner/USAGE
omg-railties-8.0.0.alpha8 lib/rails/commands/runner/USAGE
omg-railties-8.0.0.alpha7 lib/rails/commands/runner/USAGE
omg-railties-8.0.0.alpha4 lib/rails/commands/runner/USAGE
omg-railties-8.0.0.alpha3 lib/rails/commands/runner/USAGE