Method: Spring::Client::Binstub#find_commands
- Defined in:
- lib/spring/client/binstub.rb
#find_commands(name) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/spring/client/binstub.rb', line 32 def find_commands(name) case name when "--all" commands = Spring.commands commands.delete_if { |name, _| name.start_with?("rails_") } commands["rails"] = RailsCommand.new commands when "rails" { name => RailsCommand.new } else if command = Spring.commands[name] { name => command } else $stderr.puts "The '#{name}' command is not known to spring." exit 1 end end end |