class Omnibus::InvalidS3Configuration

Public Class Methods

new(s3_bucket, s3_access_key, s3_secret_key) click to toggle source
# File lib/omnibus/exceptions.rb, line 4
def initialize(s3_bucket, s3_access_key, s3_secret_key)
  @s3_bucket, @s3_access_key, @s3_secret_key = s3_bucket, s3_access_key, s3_secret_key
end

Public Instance Methods

to_s() click to toggle source
# File lib/omnibus/exceptions.rb, line 8
def to_s
  """
  One or more required S3 configuration values is missing.

  Your effective configuration was the following:

      s3_bucket     => #{@s3_bucket.inspect}
      s3_access_key => #{@s3_access_key.inspect}
      s3_secret_key => #{@s3_secret_key.inspect}

  If you truly do want S3 caching, you should add values similar
  to the following in your Omnibus config file:

        s3_bucket      ENV['S3_BUCKET_NAME']
        s3_access_key  ENV['S3_ACCESS_KEY']
        s3_secret_key  ENV['S3_SECRET_KEY']

  Note that you are not required to use environment variables as
  illustrated (and the ones listed have no special significance in
  Omnibus), but it is encouraged to prevent spread of sensitive
  information and inadvertent check-in of same to version control
  systems.

  """
end