Sha256: 5c9b94c189d547c022495514b6803db47582811a0a19c910f805aea763a7f02f

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 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
        cli.chmod "#{configuration.gem_name}/bin/#{configuration.gem_name}", 0755
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemsmith-7.7.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.6.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.5.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.4.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.3.0 lib/gemsmith/skeletons/cli_skeleton.rb
gemsmith-7.2.0 lib/gemsmith/skeletons/cli_skeleton.rb