Sha256: 17cb8529ae78e6b00ebe2b5d79cbac28556c77e56ab6edf709d20374c8658b04

Contents?: true

Size: 838 Bytes

Versions: 5

Compression:

Stored size: 838 Bytes

Contents

$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[ .. lib fog]))
require 'fog'
require 'fog/bin'

require File.join(File.dirname(__FILE__), 'helpers', 'mock_helper')

def lorem_file
  File.open(File.dirname(__FILE__) + '/lorem.txt', 'r')
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', 'terremarkecloud', 'zerigo']
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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
fog-0.5.0 tests/helper.rb
phpfog-fog-0.4.1.3 tests/helper.rb
phpfog-fog-0.4.1.2 tests/helper.rb
phpfog-fog-0.4.1.1 tests/helper.rb
phpfog-fog-0.4.1 tests/helper.rb