Sha256: de6fdb9d5f532e583d0442bbb73a80fda91238940251eeb74c7826993b62c519

Contents?: true

Size: 1.07 KB

Versions: 13

Compression:

Stored size: 1.07 KB

Contents

if ENV['IRONFAN_COV']
  require 'simplecov'
  SimpleCov.start
end

require 'ironfan'
require 'chef/cluster_knife'
require 'fog'
Fog.mock!
Fog::Mock.delay = 0

require 'gorillib/pathname'

Pathname.register_paths(code:     File.expand_path('../..', __FILE__),
                        spec:     [:code, 'spec'],
                        fixtures: [:spec, 'fixtures'],
                        support:  [:spec, 'support'])

Dir[Pathname.path_to(:support).join('**/*.rb')].each{ |f| require f }

RSpec.configure do |cfg|
  def ironfan_go!
    k = Chef::Knife.new
    k.config[:config_file] = Pathname.path_to(:fixtures, 'knife/knife.rb').to_s
    k.configure_chef
    Chef::Config.instance_eval do
      knife.merge!(aws_access_key_id:     'access_key',
                   aws_secret_access_key: 'secret')
      cluster_path Pathname.path_to(:fixtures).join('clusters').to_s
    end

    Ironfan.ui          = Chef::Knife::UI.new(STDOUT, STDERR, STDIN, {})
    Ironfan.knife_config = k.config
  end
end

require 'chef_zero/server'
server = ChefZero::Server.new(port: 4000)
server.start_background

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ironfan-6.0.9 spec/spec_helper.rb
ironfan-6.0.8 spec/spec_helper.rb
ironfan-6.1.5 spec/spec_helper.rb
ironfan-6.1.4 spec/spec_helper.rb
ironfan-6.1.3 spec/spec_helper.rb
ironfan-6.1.0 spec/spec_helper.rb
ironfan-6.0.7 spec/spec_helper.rb
ironfan-6.0.6 spec/spec_helper.rb
ironfan-6.0.5 spec/spec_helper.rb
ironfan-6.0.4 spec/spec_helper.rb
ironfan-6.0.3 spec/spec_helper.rb
ironfan-6.0.1 spec/spec_helper.rb
ironfan-6.0.0 spec/spec_helper.rb