instance method
bin
Ruby on Rails 8.0.4
Since v4.0.13Signature
bin()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 111
def bin
exclude_pattern = Regexp.union([(/thrust/ if skip_thruster?), (/rubocop/ if skip_rubocop?), (/brakeman/ if skip_brakeman?)].compact)
directory "bin", { exclude_pattern: exclude_pattern } do |content|
"#{shebang}\n" + content
end
chmod "bin", 0755 & ~File.umask, verbose: false
end
Defined in railties/lib/rails/generators/rails/app/app_generator.rb line 111
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::AppBuilder