Sha256: f5cc83c39e17b091b017cd2bf5641de8c5909a8c4d9a0066ce60f0af7683ff32
Contents?: true
Size: 581 Bytes
Versions: 5
Compression:
Stored size: 581 Bytes
Contents
#!/bin/ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require "peto" Version = IO.read(File.join(File.dirname(__FILE__), '..', "VERSION")) require "optparse" options = {} OptionParser.new do |opt| opt.on("-o output directory") {|value| options[:output] = value } opt.parse!(ARGV) end input = ARGV.pop if input.nil? puts "usage:\n % peto contract.yml" exit end options[:output] = File.dirname(input) if options[:output].nil? peto = Peto::Master.new peto.load(input) peto.generate(options[:output])
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
peto-0.2.5 | bin/peto |
peto-0.2.4 | bin/peto |
peto-0.2.3 | bin/peto |
peto-0.2.2 | bin/peto |
peto-0.2.1 | bin/peto |