Run with ENV1.
% export ENV1=1
% /bin/sh ./test.sh
ENV1 found
a=1, b=2
% echo $?
require 'spec_helper' | |
feature "Feature1" do | |
scenario "Scenario1" do | |
step "Do something 1" | |
step "Do something 2" | |
step "Do something 3" | |
step "Do something 4" | |
end |
#!/bin/bash | |
set -ue | |
WATCH_PATH="config/db/migrations/" | |
MASTER_BRANCH="$1" | |
WORK_BRANCH="$2" | |
join -1 4 -2 4 -a 2 <(git ls-tree $MASTER_BRANCH -- $WATCH_PATH) <(git ls-tree $WORK_BRANCH -- $WATCH_PATH) | \ | |
awk '$4 != $7 {print $1 " is changed"; found++; } END{ if (found > 0){ exit 1; } }' |
require "celluloid/io" | |
require "rb-inotify" | |
require "forwardable" | |
module Celluloid | |
module IO | |
class INotify | |
extend Forwardable | |
def_delegators :@notifier, :watch, :close |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string]$WatchPath, | |
[Parameter(Mandatory=$True,Position=2)] | |
[string]$Command, | |
[Parameter(Mandatory=$False)] | |
[array]$MonitorEvents = @("Created", "Changed", "Deleted", "Renamed") | |
) |
boxtemp/ | |
output-*/ | |
packer_cache/ |
PS C:\> Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, OSType, ServicePackMajorVersion, OSAr
itecture, BuildNumber, MUILanguages, OSLanguage, Locale, CodeSet, CountryCode | FL
Caption : Microsoft Windows 10 Pro
Version : 10.0.10586
OSType : 18
ServicePackMajorVersion : 0
OSArchitecture : 64 ビット
javaposse.jobdsl.dsl.DslScriptLoader is the main class to execute the DSL script. You'll see the lines where binding.setVariable()
is called.
import ( | |
"log" | |
"bufio" | |
"os" | |
"strings" | |
"os/exec" | |
"bytes" | |
) | |
func findCurrentBranch() string { |
go test -v $(go list ./... | Select-String -NotMatch /vendor/) |