Method: CommonFunctions.get_app_info_from_options

Defined in:
lib/common_functions.rb

.get_app_info_from_options(options) ⇒ Object



856
857
858
859
860
861
862
863
864
865
866
867
868
# File 'lib/common_functions.rb', line 856

def self.get_app_info_from_options(options)
  file_location = options['file_location']
  table = options['table']

  if file_location.nil?
    apps_to_start = ["none"]
    return apps_to_start, {}
  else
    app_info = CommonFunctions.get_app_name_from_tar(file_location)
    apps_to_start = [CommonFunctions.validate_app_name(app_info[:app_name], table)]
    return apps_to_start, app_info
  end
end