diff options
Diffstat (limited to 'lib/leap_cli/config/manager.rb')
-rw-r--r-- | lib/leap_cli/config/manager.rb | 5 |
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 |