Sha256: 0919780fc4bed001526ecbfd80ee4644f133ae941e9007099abc68e99849d939
Contents?: true
Size: 908 Bytes
Versions: 11
Compression:
Stored size: 908 Bytes
Contents
#!/usr/bin/env ruby require 'dock0' require 'mercenary' Mercenary.program(:dock0) do |p| p.version Dock0::VERSION p.description 'Tool for creating server components' p.syntax 'dock0 <subcommand> [args]' p.command(:image) do |c| c.syntax 'image CONFIG1 [... CONFIGN]' c.description 'Build a root image' c.action do |args, _| Dock0.easy_mode :Image, args puts 'All done!' end end p.command(:config) do |c| c.syntax 'config CONFIG1 [... CONFIGN]' c.description 'Build a configuration bundle' c.action do |args, _| Dock0.easy_mode :Config, args puts 'All done!' end end p.command(:install) do |c| c.syntax 'install CONFIG1 [... CONFIGN]' c.description 'Build/update a install' c.action do |args, _| Dock0.easy_mode :Install, args puts 'All done!' end end p.action do puts p exit 1 end end
Version data entries
11 entries across 11 versions & 1 rubygems