instance method script

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

script(force = false)

No documentation comment.

Parameters

force opt = false
Source
# File railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb, line 128
    def script(force = false)
      return unless full?

      directory "script", :force => force do |content|
        "#{shebang}\n" + content
      end
      chmod "script", 0755, :verbose => false
    end

Defined in railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb line 128 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::PluginBuilder

Type at least 2 characters to search.

↑↓ navigate · open · esc close