Sha256: 3647eb30fc02db42cdf6f8a6af889fa4b06d7aee227da152e00b9d0d2c0f2c15

Contents?: true

Size: 851 Bytes

Versions: 6

Compression:

Stored size: 851 Bytes

Contents

require "specinfra/version"
require "specinfra/helper"
require "specinfra/backend"
require "specinfra/command"
require "specinfra/configuration"

include SpecInfra

module SpecInfra
  class << self
    def configuration
      SpecInfra::Configuration
    end
  end
end

if defined?(RSpec)
  RSpec.configure do |c|
    c.include(SpecInfra::Helper::Configuration)
    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.add_setting :winrm,         :default => nil
    SpecInfra.configuration.defaults.each { |k, v| c.add_setting k, :default => v }
    c.before :each do
      if respond_to?(:backend) && backend.respond_to?(:set_example)
        backend.set_example(example)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
specinfra-0.1.1 lib/specinfra.rb
specinfra-0.1.0 lib/specinfra.rb
specinfra-0.0.17 lib/specinfra.rb
specinfra-0.0.11 lib/specinfra.rb
specinfra-0.0.10 lib/specinfra.rb
specinfra-0.0.9 lib/specinfra.rb