Sha256: 96ec6c2a854384175e39a3d27e9f9c99a396c6466d490929b88a84f9429567f7
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'lib', 'fog') require 'fog/core/bin' # Use so you can run in mock mode from the command line # # FOG_MOCK=true fog if ENV["FOG_MOCK"] == "true" Fog.mock! end # check to see which credentials are available and add others to the skipped tags list all_providers = ['aws', 'bluebox', 'brightbox', 'gogrid', 'google', 'linode', 'local', 'newservers', 'rackspace', 'slicehost', 'terremark'] available_providers = Fog.providers.map {|provider| provider.to_s.downcase} for provider in (all_providers - available_providers) Formatador.display_line("[yellow]Skipping tests for [bold]#{provider}[/] [yellow]due to lacking credentials (add some to '~/.fog' to run them)[/]") Thread.current[:tags] << ('-' << provider) end def lorem_file File.open(File.dirname(__FILE__) + '/lorem.txt', 'r') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.4.0 | tests/helper.rb |