lib/scaffoldhub/helper.rb in scaffoldhub-0.0.4 vs lib/scaffoldhub/helper.rb in scaffoldhub-0.0.6
- old
+ new
@@ -23,12 +23,12 @@
rescue Scaffoldhub::NetworkErrorException => e
say_status :error, "HTTP error connecting to #{e.message}", :red
end
end
- def find_template_file(type, name)
+ def find_template_file(type)
begin
- template_file = scaffold_spec.find_file(type, name)
+ template_file = scaffold_spec.find_file(type)
template_file.download! unless template_file.nil?
rescue Errno::ENOENT => e
say_status :error, e.message, :red
nil
rescue Scaffoldhub::NotFoundException => e