title: Fog error: nodename nor servname provided
body: <p>I have the following set up for FOG basically <a href="http://fog.io/1.7.0/storage/" rel="nofollow">right out of the FOG website</a>:</p>
  
  <pre><code>  def fog_save_file_for(filename, file) 
  # create a connection
  connection = Fog::Storage.new({
    :provider                 =&gt; 'AWS',
    :aws_access_key_id        =&gt; '##',
    :aws_secret_access_key    =&gt; '##'
  })
  
  directory = connection.directories.get('upload_dir')
  
  # list directories
  #p connection.directories
  
  # upload that resume
  file = directory.files.create(
    :key    =&gt; filename,
    :body   =&gt; File.open("cv_uploads/provider_cvs/"+filename),
    :public =&gt; true
  )
  end
  </code></pre>
  
  <p>at run time I get the following error:</p>
  
  <pre><code>getaddrinfo: nodename nor servname provided, or not known (SocketError)
  </code></pre>