Sha256: 220852210a6f5ea8a24011e689d1d0933c4cba512dbd83e1ab95f9a1497dde56

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

require 'chef/config'

module Berkshelf
  module RSpec
    module Knife
      class << self
        def load_knife_config(path)
          if File.exist?(path)
            Chef::Config.from_file(path)
            ENV["CHEF_CONFIG"] = path
          else
            raise "Cannot continue; '#{path}' must exist and have testing credentials."
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
berkshelf-0.6.0.beta2 spec/support/knife.rb
berkshelf-0.5.1 spec/support/knife.rb
berkshelf-0.6.0.beta1 spec/support/knife.rb
berkshelf-0.5.0 spec/support/knife.rb
berkshelf-0.5.0.rc4 spec/support/knife.rb
berkshelf-0.5.0.rc3 spec/support/knife.rb
berkshelf-0.5.0.rc2 spec/support/knife.rb
berkshelf-0.5.0.rc1 spec/support/knife.rb
berkshelf-0.4.0 spec/support/knife.rb
berkshelf-0.4.0.rc4 spec/support/knife.rb
berkshelf-0.4.0.rc3 spec/support/knife.rb
berkshelf-0.4.0.rc2 spec/support/knife.rb
berkshelf-0.4.0.rc1 spec/support/knife.rb