plugins/env/app/models/external_environment_variable_group.rb
def resolve_s3_url
    parsed_url = URI.parse url.to_s

    key = parsed_url.path.to_s[1..]
    bucket = parsed_url.host.to_s.chomp ".s3.amazonaws.com"

    params = (URI.decode_www_form parsed_url.query.to_s).to_h
    version_id = params["versionId"]
    [key, bucket, version_id]
  end
# Resolves the S3 key and bucket name from URL
Resolves the S3 key and bucket name from URL
Resolves the S3 key and bucket name from URL
def resolve_s3_url
    parsed_url = URI.parse url.to_s
    key = parsed_url.path.to_s[1..]
    bucket = parsed_url.host.to_s.chomp ".s3.amazonaws.com"
    params = (URI.decode_www_form parsed_url.query.to_s).to_h
    version_id = params["versionId"]
    [key, bucket, version_id]
  end
def resolve_s3_url parsed_url = URI . parse url . to_s key = parsed_url . path . to_s [ 1 .. ] bucket = parsed_url . host . to_s . chomp ".s3.amazonaws.com" params = ( URI . decode_www_form parsed_url . query . to_s ) . to_h version_id = params [ "versionId" ] [ key , bucket , version_id ] end
Resolves the S3 key and bucket name from URL
Resolves the S3 key and bucket name from URL