module Serverspec::Type
serverspec-extended-types - virtualenv
<github.com/jantman/serverspec-extended-types>
Copyright (C) 2015 Jason Antman <jason@jasonantman.com>
Licensed under the MIT License - see LICENSE.txt
Public Instance Methods
Serverspec
Type
method for Bitlbee
@example
describe bitlbee(6697, 'myuser', 'mypass') do # tests here end
@api public
@param port [Integer] the port to connect to @param nick [String] the nick to connect as @param password [String] the password for nick @param use_ssl [Boolean] whether to connect with SSL
@return {Serverspec::Type::Bitlbee} instance
# File lib/serverspec_extended_types/bitlbee.rb, line 198 def bitlbee(port, nick, password, use_ssl=false) Bitlbee.new(port, nick, password, use_ssl) end
ServerSpec Type
wrapper for http_get
@example
describe http_get(80, 'myhostname', '/') do # tests here end
@param port [Int] the port to connect to HTTP over @param host_header [String] the value to set in the 'Host' HTTP request header @param path [String] the URI/path to request from the server @param timeout_sec [Int] how many seconds to allow request to run before timing out and setting @timed_out_status to True @param protocol [String] the protocol to connect to the server (default 'http', can be 'https') @param bypass_ssl_verify [Boolean] if true, SSL verification will be bypassed (useful for self-signed certificates)
@api public @return [Serverspec::Type::Http_Get]
# File lib/serverspec_extended_types/http_get.rb, line 215 def http_get(port, host_header, path, timeout_sec=10, protocol='http', bypass_ssl_verify=false) Http_Get.new(port, host_header, path, timeout_sec, protocol, bypass_ssl_verify) end
Serverspec
Type
wrapper method for Serverspec::Type::Virtualenv
@example
describe virtualenv('/path/to/venv') do # tests here end
@param name [String] the absolute path to the virtualenv root
@api public @return {Serverspec::Type::Virtualenv}
# File lib/serverspec_extended_types/virtualenv.rb, line 156 def virtualenv(name) Virtualenv.new(name) end