Sha256: c23261a25f02843d985723e0976c9b77d00f7a3bcafc2b48c7d65a6f2669a16d
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
# usage: tap destroy GENERATOR ... # # Runs a generator in reverse. Each generator works a little differently; the # best way to figure out what a generator does is to use --help. For example: # # % tap generate root --help # require 'tap/generator/base' require 'tap/generator/destroy' env = Tap::Env.instance if ARGV.empty? || ARGV == ['--help'] puts Lazydoc.usage(__FILE__) puts puts "generators:" puts env.summarize(:generators) exit end name = ARGV.shift const = env.generators.search(name) or raise "unknown generator: #{name}" generator_class = const.constantize generator, argv = generator_class.parse(ARGV) generator.extend(Tap::Generator::Destroy).process(*argv)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tap-0.12.3 | cmd/destroy.rb |
tap-0.12.4 | cmd/destroy.rb |