147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
# File 'lib/spring/client/binstub.rb', line 147
def find_commands(name)
case name
when "--all"
@all = true
commands = Spring.commands.dup
commands.delete_if { |name, _| name.start_with?("rails_") }
commands.values + [self.class.rails_command]
when "--remove"
@mode = :remove
[]
when "rails"
[self.class.rails_command]
else
if command = Spring.commands[name]
[command]
else
$stderr.puts "The '#{name}' command is not known to spring."
exit 1
end
end
end
|