Sha256: f6d93f000bd8d4aaa5ad3f18db272bf0f5ebafa22df0cee839dfb3bea9f9069f

Contents?: true

Size: 551 Bytes

Versions: 11

Compression:

Stored size: 551 Bytes

Contents

require 'rspec'
require 'infrataster/resources'

module Infrataster
  module Helpers
    module ResourceHelper
      if RSpec::Version::STRING.start_with?('2.')
        include RSpec::Matchers
      end

      def server(*args)
        Resources::ServerResource.new(*args)
      end

      def http(*args)
        Resources::HttpResource.new(*args)
      end

      def mysql_query(*args)
        Resources::MysqlQueryResource.new(*args)
      end

      def capybara(*args)
        Resources::CapybaraResource.new(*args)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
infrataster-0.3.2 lib/infrataster/helpers/resource_helper.rb
infrataster-0.3.1 lib/infrataster/helpers/resource_helper.rb
infrataster-0.3.0 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.6 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.5 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.4 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.3 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.2 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.1 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.0 lib/infrataster/helpers/resource_helper.rb
infrataster-0.2.0.beta1 lib/infrataster/helpers/resource_helper.rb