Sha256: 9757f4b8d153fc049292fd986a67837c29a4f31363ba7895f09f05482ecce867

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 KB

Contents

#
# Copyright (C) 2009  Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

require 'rubygems'
require 'yaml'
require 'fileutils'

api_host = ENV['API_HOST']
( api_host = 'localhost' ) if api_host.nil?
( api_host = 'localhost' ) if api_host == ''

api_port = ENV['API_PORT']
( api_port = 3001 ) if api_port.nil?
( api_port = 3001 ) if api_port == ''

API_HOST = api_host
API_PORT = api_port
API_PATH = '/api'

API_URL = "http://#{API_HOST}:#{API_PORT}#{API_PATH}"
API_NAME     = 'mockuser'
API_PASSWORD = 'mockpassword'

$: << File.dirname( __FILE__ ) + '/../lib'
require 'deltacloud'

def clean_fixtures
  FileUtils.rm_rf( File.dirname( __FILE__ ) + '/data' )
end

def reload_fixtures
  clean_fixtures
  FileUtils.cp_r( File.dirname( __FILE__) + '/fixtures', File.dirname( __FILE__ ) + '/data' )
end

$: << File.dirname( __FILE__ )
require 'shared/resources'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deltacloud-client-0.0.7 specs/spec_helper.rb
deltacloud-client-0.0.6 specs/spec_helper.rb
deltacloud-client-0.0.5 specs/spec_helper.rb