lib/gooddata/commands/runners.rb in gooddata-0.6.10 vs lib/gooddata/commands/runners.rb in gooddata-0.6.11

- old
+ new

@@ -11,11 +11,11 @@ fail 'You have to specify directory of the brick run' if brick_dir.nil? fail 'You specified file as a birck run directory. You have to specify directory.' if File.exist?(brick_dir) && !File.directory?(brick_dir) params = options[:expanded_params] || {} - GoodData.connection.connect! - sst = GoodData.connection.cookies[:cookies]['GDCAuthSST'] + client = GoodData.connect(options[:username], options[:password]) + sst = client.connection.sst_token pwd = Pathname.new(Dir.pwd) server_uri = URI(options[:server]) unless options[:server].nil? scheme = server_uri.nil? ? '' : server_uri.scheme hostname = server_uri.nil? ? '' : server_uri.host