Sha256: 3c32a09216225268dfd93a493a388bfc05682d72f001631e1c9138a3934c9a25

Contents?: true

Size: 1006 Bytes

Versions: 8

Compression:

Stored size: 1006 Bytes

Contents

require 'rubygems'
require 'rspec'
require 'serverspec/version'
require 'serverspec/matchers'
require 'serverspec/backend'
require 'serverspec/helper'
require 'serverspec/setup'
require 'serverspec/filter'
require 'serverspec/subject'
require 'serverspec/commands/base'
require 'serverspec/commands/redhat'
require 'serverspec/commands/debian'
require 'serverspec/commands/gentoo'
require 'serverspec/commands/solaris'

RSpec.configure do |c|
  c.include(Serverspec::Helper::RedHat,  :os => :redhat)
  c.include(Serverspec::Helper::Debian,  :os => :debian)
  c.include(Serverspec::Helper::Gentoo,  :os => :gentoo)
  c.include(Serverspec::Helper::Solaris, :os => :solaris)
  c.add_setting :os,            :default => nil
  c.add_setting :host,          :default => nil
  c.add_setting :ssh,           :default => nil
  c.add_setting :sudo_password, :default => nil
  c.before :each do
    if subject == 'value'
      def subject
        Serverspec::Filter.filter_subject example
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-0.2.22 lib/serverspec.rb
serverspec-0.2.21 lib/serverspec.rb
serverspec-0.2.20 lib/serverspec.rb
serverspec-0.2.19 lib/serverspec.rb
serverspec-0.2.18 lib/serverspec.rb
serverspec-0.2.17 lib/serverspec.rb
serverspec-0.2.16 lib/serverspec.rb
serverspec-0.2.15 lib/serverspec.rb