Sha256: 1bc22d3c7b476eac3f278b2403d7a41bcdfecbbd6bd1f0561c57ed2b41747814
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
module Gemsmith module Skeletons # Configures Command Line Interface (CLI) support. class CLISkeleton < BaseSkeleton def enabled? cli.template_options.key?(:bin) && cli.template_options[:bin] end def create return unless enabled? cli.template "%gem_name%/bin/%gem_name%.tt", cli.template_options cli.template "%gem_name%/lib/%gem_name%/cli.rb.tt", cli.template_options end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.6.0 | lib/gemsmith/skeletons/cli_skeleton.rb |
gemsmith-5.5.0 | lib/gemsmith/skeletons/cli_skeleton.rb |
gemsmith-5.4.0 | lib/gemsmith/skeletons/cli_skeleton.rb |