summaryrefslogtreecommitdiff
path: root/lib/leap_cli/config/manager.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-01-30 22:25:37 -0800
committerelijah <elijah@riseup.net>2013-01-30 22:25:37 -0800
commit62dfe5a61b547179babb815245bb8a0e3ea14f6f (patch)
treed594c83dafc9c3d2c80ea3e8e32878468d509076 /lib/leap_cli/config/manager.rb
parentf688b404c7f1dbcd3650314d5b5279cf2a6657b7 (diff)
fix bug with vanishing secrets
Diffstat (limited to 'lib/leap_cli/config/manager.rb')
-rw-r--r--lib/leap_cli/config/manager.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/leap_cli/config/manager.rb b/lib/leap_cli/config/manager.rb
index 5fc4499..5a82526 100644
--- a/lib/leap_cli/config/manager.rb
+++ b/lib/leap_cli/config/manager.rb
@@ -90,10 +90,9 @@ module LeapCli
end
end
- def export_secrets(destination_file = nil)
+ def export_secrets(clean_unused_secrets = false)
if @secrets.any?
- file_path = destination_file || Path.named_path(:secrets_config, @provider_dir)
- Util.write_file!(file_path, @secrets.dump_json + "\n")
+ Util.write_file!([:secrets_config, @provider_dir], @secrets.dump_json(clean_unused_secrets) + "\n")
end
end