Sha256: 015e2c9c3ed17d5f9c0d8aed0ad4d956844e6df34e210250b0265d0c30bbf480

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

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

include SpecInfra

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

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
    backend.set_example(example) if defined?(SPEC_TYPE)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
specinfra-0.0.3 lib/specinfra.rb
specinfra-0.0.2 lib/specinfra.rb