Class: Gemsmith::Skeletons::CLISkeleton
- Inherits:
-
BaseSkeleton
- Object
- BaseSkeleton
- Gemsmith::Skeletons::CLISkeleton
- Defined in:
- lib/gemsmith/skeletons/cli_skeleton.rb
Overview
Configures Command Line Interface (CLI) support.
Instance Method Summary collapse
Methods inherited from BaseSkeleton
Constructor Details
This class inherits a constructor from Gemsmith::Skeletons::BaseSkeleton
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 |
# File 'lib/gemsmith/skeletons/cli_skeleton.rb', line 5 def create return unless configuration.create_cli? cli.template "%gem_name%/bin/%gem_name%.tt", configuration.to_h cli.template "%gem_name%/lib/%gem_name%/cli.rb.tt", configuration.to_h end |