Sha256: a69c0c96a987f31f6d3f4c14428334cfc2920ceb5d92c04fcca2751d243460ab

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require "thor"
require "rubygems"

module Skelegem
  module Templates

    class ThorCLI < Thor::Group

      include Thor::Actions

      argument :name

      def self.source_root
        File.dirname __FILE__
      end

      def setup_files
        template "cli.tt", "lib/#{name}/cli.rb"

        File.delete "bin/#{name}"
        template "bin.tt", "bin/#{name}"
        chmod "bin/#{name}", 0755
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skelegem-0.1.0 lib/skelegem/templates/thor_cli/thor_cli.rb