lib/gooddata/cli/shared.rb in gooddata-0.6.19 vs lib/gooddata/cli/shared.rb in gooddata-0.6.20
- old
+ new
@@ -4,10 +4,11 @@
require_relative '../version'
require_relative '../core/core'
require_relative '../extensions/extensions'
require_relative '../exceptions/exceptions'
+require_relative '../helpers/auth_helpers'
include GLI::App
GoodData::CLI.module_eval do
program_desc 'GoodData Ruby gem - a wrapper over GoodData API and several useful abstractions to make your everyday usage of GoodData easier.'
@@ -28,10 +29,10 @@
default_value nil
arg_name 'project-id'
flag [:p, :project_id]
desc 'Server'
- default_value GoodData::Rest::Connection::DEFAULT_URL
+ default_value GoodData::Helpers::AuthHelper.read_server
arg_name 'server'
flag [:s, :server]
desc 'WEBDAV Server. Used for uploads of files'
default_value nil