lib/adminix/setup/services.rb in adminix-0.1.24 vs lib/adminix/setup/services.rb in adminix-0.1.25

- old
+ new

@@ -125,13 +125,14 @@ def self.config Adminix::Config.instance end def self.import_settings(secret_key, service_id) - open("#{ENV['HOME']}/.adminix", 'w') do |f| - f.puts({ secret_key: secret_key, service_id: service_id }.to_json) - end - + config = Adminix::Config.instance + config.service_id = service_id + config.secret_key = secret_key + config.export_credentials + true end end end