This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Source\tmp\process_spawn> be ruby test.rb | |
*** back ticks | |
hello " world | |
*** %x | |
hello " world | |
*** capture3 | |
hello "\"" world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module powershell-yaml | |
$repos = @('puppetlabs-accounts', | |
'puppetlabs-acl', | |
'puppetlabs-apache', | |
'puppetlabs-apt', | |
'puppetlabs-azure', | |
'puppetlabs-bootstrap', | |
'puppetlabs-chocolatey', | |
'puppetlabs-concat', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 7.0 | |
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) | |
if (-not $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Throw "This script must be run elevated!" | |
Exit 1 | |
} | |
$BT = Get-Module -name 'BurntToast' -ListAvailable -ErrorAction SilentlyContinue | |
if ($null -eq $BT) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os: ['windows-latest', 'ubuntu-latest'] | |
ruby: ['2.4', '2.5', '2.7'] | |
command: ['... run all tests ...'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'webrick' | |
require 'net/http' | |
require 'json' | |
require 'securerandom' | |
POST_PATH_RE = /\/(?'result'pass|fail|random|invalid|none|actual|seccomp|costmgmt)(?:$|-(?'delay'[\d]+))/.freeze | |
LOGS_PATH_RE = /\/logs\/(?'id'[a-zA-Z\-0-9]+$)/.freeze | |
$pending_jobs = [] | |
$exit_now = false |
OlderNewer