lib/cli/config.rb in af-0.3.16.5 vs lib/cli/config.rb in af-0.3.18.1

- old
+ new

@@ -21,10 +21,11 @@ class << self attr_accessor :colorize attr_accessor :output attr_accessor :trace attr_accessor :nozip + attr_accessor :infra def target_url return @target_url if @target_url target_file = File.expand_path(TARGET_FILE) if File.exists? target_file @@ -40,10 +41,10 @@ def base_of(url) url.sub(/^[^\.]+\./, "") end def suggest_url - @suggest_url ||= "aws.af.cm" + @suggest_url ||= VMC::Cli::InfraHelper.base_for_infra(@infra) end def store_target(target_host) target_file = File.expand_path(TARGET_FILE) lock_and_write(target_file, target_host)