Sha256: c3b6fb4d1684245113206af61f35074e7950a7d50554f59a6980e21340776bba
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require 'seeit' require "json" require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: seeit_build_version" opts.on("-pPROJECT_DIR", "--project-dir=PROJECT_DIR", "Project directory with settings.json") do |project_dir| options[:project_dir] = project_dir end opts.on("-h", "--help", "Prints this help") do puts opts exit end end.parse! # raise required items raise OptionParser::MissingArgument if options[:project_dir].nil? build_version = options[:build_version] build_version = Date.today.strftime("%Y-%m-%d") if options[:build_version].nil? b = Seeit::Builder.new(options[:project_dir], 'baseline') b.build
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seeit-0.1.0 | bin/seeit_build_baseline |