Sha256: 9e3dd87f48d8ed00035b138703d1fff6854e5bbe1dc40ea6e72a091254430f1c
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 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.action do puts p exit 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dock0-0.2.2 | bin/dock0 |