lib/scaffolder/tool_index.rb in scaffolder-tools-0.1.2 vs lib/scaffolder/tool_index.rb in scaffolder-tools-0.1.3
- old
+ new
@@ -17,16 +17,9 @@
else
Scaffolder::Tool::Help
end
end
- def determine_tool(settings)
- type = settings.rest.shift
- tool_class = self[type]
- settings[:unknown_tool] = type unless (tool_exists?(type) or type.nil?)
- [tool_class,settings]
- end
-
private
def tool_classes
Scaffolder::Tool.constants.inject(Array.new) do |array,constant|
clss = Scaffolder::Tool.const_get(constant)