class CarthageCacheRes::MissingConfigurationKey
Public Class Methods
missing_aws_access_key_id()
click to toggle source
# File lib/carthage_cache_res/configuration_validator.rb, line 28 def self.missing_aws_access_key_id missing_aws_key("access_key_id", "access key ID") end
missing_aws_key(keyname, name)
click to toggle source
# File lib/carthage_cache_res/configuration_validator.rb, line 14 def self.missing_aws_key(keyname, name) solution = "You need to specify the AWS #{name} to be used.\n" \ "You can either define a environmental variable " \ "AWS_REGION or add ':#{keyname}: YOUR_KEY_VALUE' " \ "under the :aws_s3_client_options: key in the " \ ".carthage_cache_res.yml file.\nYou can also run " \ "'carthage_cache_res config' to generate the config file." self.new("aws_s3_client_options.#{keyname}", solution) end
missing_aws_region()
click to toggle source
# File lib/carthage_cache_res/configuration_validator.rb, line 24 def self.missing_aws_region missing_aws_key("region", "region") end
missing_aws_secret_access_key()
click to toggle source
# File lib/carthage_cache_res/configuration_validator.rb, line 32 def self.missing_aws_secret_access_key missing_aws_key("secret_access_key", "secret access key") end
missing_bucket_name()
click to toggle source
# File lib/carthage_cache_res/configuration_validator.rb, line 5 def self.missing_bucket_name solution = "You need to specify the AWS S3 bucket to be used.\n" \ "You can either pass the '--bucket-name' option or " \ " add ':bucket_name: YOUR_BUCKET_NAME' to " \ ".carthage_cache_res.yml file.\nYou can also run " \ "'carthage_cache_res config' to generate the config file." self.new(:bucket_name, solution) end