Skip to content

Commit

Permalink
remote set_configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Jun 19, 2015
1 parent c5e2be7 commit 506b892
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/commands/unipept/api_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ class Commands::ApiRunner < Cri::CommandRunner
def initialize(args, opts, cmd)
super
@configuration = Unipept::Configuration.new
set_configuration

@url = "#{@host}/api/v1/#{cmd.name}.json"
end

# Sets the configurable options of the command line app:
# - the host
# - the user agent
def set_configuration
@host = host
@user_agent = 'Unipept CLI - unipept ' + Unipept::VERSION
@url = "#{@host}/api/v1/#{cmd.name}.json"
end

# Returns the host. If a value is defined by both an option and the config
Expand Down

0 comments on commit 506b892

Please sign in to comment.