lib/brief/cli/export.rb in brief-1.8.2 vs lib/brief/cli/export.rb in brief-1.8.3

- old
+ new

@@ -10,12 +10,12 @@ options.default :config_path => Pathname(Dir.pwd).join('brief.rb') briefcase = Brief::Briefcase.new(config_path: Pathname(options.config_path)) - json = briefcase.present("default", content: !!options.include_content, rendered: !!options.include_rendered) + dump = briefcase.as_full_export() - output = args.first || "briefcase.json" + output = args.first || "#{ briefcase.cache_key }.json" - Pathname(Dir.pwd).join(output).open("w+") {|fh| fh.write(json.to_json) } + Pathname(Dir.pwd).join(output).open("w+") {|fh| fh.write(dump.to_json) } end end