lib/puppet-repl/support/input_responders.rb in puppet-repl-0.1.0 vs lib/puppet-repl/support/input_responders.rb in puppet-repl-0.1.1
- old
+ new
@@ -44,10 +44,10 @@
play_back(config)
end
def resources(args=[])
res = scope.compiler.catalog.resources.map do |res|
- res.to_s
+ res.to_s.gsub(/\[/, "['").gsub(/\]/, "']") # ensure the title has quotes
end
if !args.first.nil?
ap res[args.first.to_i]
else
puts "Resources not shown in any specific order".warning