Skip to content

Instantly share code, notes, and snippets.

$ bundle exec rake acceptance
/Users/richardc/.rubies/ruby-2.3.3/bin/ruby -I/Users/richardc/.gem/ruby/2.3.3/gems/rspec-core-3.7.1/lib:/Users/richardc/.gem/ruby/2.3.3/gems/rspec-support-3.7.1/lib /Users/richard
c/.gem/ruby/2.3.3/gems/rspec-core-3.7.1/exe/rspec spec/acceptance
/Users/richardc/.gem/ruby/2.3.3/gems/beaker-rspec-6.2.3/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/Users/richardc/.gem/ruby/2.3.3/gems/specinfra-2.73.2/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Hosts file 'spec/acceptance/nodesets/default.yml' does not exist.
Trying as beaker-hostgenerator input.
$ bundle exec rspec
Warning: ModuleLoader: module 'jbtest' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list -
-tree' to see information about modules
   (file & line not available)
Error: Evaluation Error: Resource type not found: Stdlib::Absolutepath at /Users/richardc/src/puppet-stuff/puppet-jbtest/spec/fixtures/m
odules/jbtest/manifests/init.pp:3:3 on node penge.local
def confine(hash)
puts hash
puts ! ! hash[:true]
end
confine :true => Proc.new { true }
$ git br -v | grep master
* master b8cb8eb Adding back the GNUmakefile test-compile step
$ make testacc
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -timeout 120m
? github.com/terraform-providers/terraform-provider-gitlab [no test files]
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
$regexp = /^.$/
notice(type($regexp))
class foo($bar) {
notice(type($bar))
}
class { 'foo': bar => $regexp }
$ diff -ur ~/.gem/ruby/1.9.3/gems/systemu-2.6.5/ .
Only in .: .git
diff -ur /Users/richardc/.gem/ruby/1.9.3/gems/systemu-2.6.5/Rakefile ./Rakefile
--- /Users/richardc/.gem/ruby/1.9.3/gems/systemu-2.6.5/Rakefile 2015-03-23 10:51:17.000000000 +0000
+++ ./Rakefile 2014-03-24 17:49:08.000000000 +0000
@@ -297,7 +297,7 @@
# discover full path to this ruby executable
#
- c = RbConfig::CONFIG
#!/usr/bin/env ruby
def runblock(foo)
# fake data
data = [1, 2, 3]
if block_given?
data.each { |v| yield(v) }
end
data
end
#!/usr/bin/env ruby
# take a mcollective client log on stdin, summarises the requests and
# responses
@send_count = 0
@recv_count = 0
def summarize_and_reset
if @send_count > 0 || @recv_count > 0
puts "Sent #{@send_count} recv #{@recv_count}"
#!/usr/bin/env ruby
require 'socket'
require 'openssl'
def ssl_connect(host, port)
tcp_socket = TCPSocket.new host, port
puts "tcp connected"
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
user system total real
block 6.950000 0.220000 7.170000 ( 5.177000)
SymbolProc 5.500000 0.090000 5.590000 ( 5.082000)