lib/noe/show_spec.rb in noe-1.7.3 vs lib/noe/show_spec.rb in noe-1.7.4
- old
+ new
@@ -32,10 +32,10 @@
end
def execute(args)
raise Quickl::Help if args.size > 1
spec_file = find_noespec_file(args)
- spec = YAML::load(File.read(spec_file))
+ spec = YAML::load(spec_file.read)
template = template(spec['template-info']['name'])
template.merge_spec(spec)
puts template.to_yaml
end