Sha256: 910f720b04aa9e5c46e62046ca590151f75298b0148d1371b0f423309c5ca2c4

Contents?: true

Size: 345 Bytes

Versions: 5

Compression:

Stored size: 345 Bytes

Contents

module Gemaker
  module Cmd
    class AddCliStructure < Gemaker::Cmd::Base
      def perform
        return unless @config.cli?
        copy_template("exe", "exe/#{@config.gem_name}", config: @config)
        copy_template("cli.rb", "lib/#{@config.gem_name}/cli.rb", config: @config)
        info "Add CLI structure"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gemaker-0.6.0 lib/gemaker/commands/add_cli_structure.rb
gemaker-0.5.0 lib/gemaker/commands/add_cli_structure.rb
gemaker-0.4.0 lib/gemaker/commands/add_cli_structure.rb
gemaker-0.3.0 lib/gemaker/commands/add_cli_structure.rb
gemaker-0.2.0 lib/gemaker/commands/add_cli_structure.rb