Sha256: 49d8df134046084e463dfd46e45f9f18dee1a291feb2b6d54fbe038b78d88d0d
Contents?: true
Size: 849 Bytes
Versions: 1
Compression:
Stored size: 849 Bytes
Contents
#!/usr/bin/env ruby require 'getopt/long' require 'devinstall' require 'devinstall/settings' opt =Getopt::Long.getopts( ['--package', '-p', Getopt::REQUIRED], ['--config', '-c', Getopt::REQUIRED], ['--type', '-t', Getopt::REQUIRED], ['--env', '-e', Getopt::REQUIRED], ['--build', '-b', ], ['--upload', '-u', ], ['--install', '-i', ], ['--help', '-h', ], ) if opt['help'] p('Usage: pkg-install --package|-p <package> --config|-c <config file> --build|--upload|--install') exit!(0) end Settings.load!(opt['config']) package=Pkg.new(opt['package']) if opt[:build] package.build!(opt['type'].to_sym) end if opt[:install] package.build!(opt['type'].to_sym) package.install!(opt['env'].to_sym) end if opt[:upload] package.build!(opt['type'].to_sym) package.upload!(opt['env'].to_sym) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devinstall-0.0.3 | bin/pkg-tool |