Sha256: adde3596453e572de85bcfe091e00bd23c549e7639b1782ab36ca49a2a2e3593

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Skeletons
    # Configures Command Line Interface (CLI) support.
    class CLISkeleton < BaseSkeleton
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemsmith-7.1.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.0.0 lib/gemsmith/skeletons/cli_skeleton.rb