Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 829 Bytes
require 'fog'
require 'fog/bin'
require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper'))
def lorem_file + '/lorem.txt', 'r')
# check to see which credentials are available and add others to the skipped tags list
all_providers = ['aws', 'bluebox', 'brightbox', 'dnsimple', 'dnsmadeeasy', 'ecloud', 'gogrid', 'google', 'linode', 'local', 'ninefold', 'newservers', 'rackspace', 'slicehost', 'stormondemand', 'voxel', 'zerigo']
available_providers = {|provider| provider.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)
Something went wrong with that request. Please try again.