Sha256: b65b873b916d5856e024fa7bd4aaefd26231c44fdea7e8823609c17d9a13e04c
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
require 'pathname' dir = Pathname.new(__FILE__).parent $LOAD_PATH.unshift(File.join(dir,'lib')) require 'cobbler' gem 'rspec', '~> 2.5.0' require 'mocha' RSpec.configure do |config| config.mock_with :mocha end def with_real_cobbler(calzz,&blk) unless ENV['NO_REAL_COBBLER'] == '1' config = (ENV['COBBLER_YML'] || File.expand_path(File.join(File.dirname(__FILE__),'..','config','cobbler.yml'))) if File.exist?(config) && (yml = YAML::load(File.open(config))) && (yml['hostname'] && yml['username'] && \ yml['password'] && yml['secure']) yield(yml) else puts "No cobbler data found." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cobbler-2.0.3 | spec/spec_helper.rb |