method
perform
v7.1.3.4 -
Show latest stable
-
0 notes -
Class: PluginCommand
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- What's this?
perform(type = nil, *plugin_args)
public
Hide source
# File railties/lib/rails/commands/plugin/plugin_command.rb, line 23 def perform(type = nil, *plugin_args) plugin_args << "--help" unless type == "new" unless options.key?("no_rc") # Thor's not so indifferent access hash. railsrc = File.expand_path(options[:rc]) if File.exist?(railsrc) extra_args = File.read(railsrc).split(/\n+/).flat_map(&:split) say "Using #{extra_args.join(" ")} from #{railsrc}" plugin_args.insert(1, *extra_args) end end run_plugin_generator plugin_args end