lib/conjur/command/script.rb in conjur-cli-4.3.0 vs lib/conjur/command/script.rb in conjur-cli-4.4.0

- old
+ new

@@ -27,11 +27,11 @@ desc "Run a Conjur DSL script" arg_name "script" command :execute do |c| acting_as_option(c) - c.desc "Load context from this config file; save it when finished" + c.desc "Load context from this config file, and save it when finished. The file permissions will be 0600 by default." c.arg_name "context" c.flag [:c, :context] c.action do |global_options,options,args| filename = nil @@ -53,9 +53,10 @@ result = runner.execute if options[:context] File.write(options[:context], JSON.pretty_generate(runner.context)) + File.chmod(0600, options[:context]) end puts JSON.pretty_generate(result) end end \ No newline at end of file