Sha256: 89320434819b1b71ae87fd411f92ee30af1fd054778ea7a78246081ad1d0c776

Contents?: true

Size: 591 Bytes

Versions: 3

Compression:

Stored size: 591 Bytes

Contents

module Tap::Generator::Generators
  
  # :startdoc: Tap::Generator::Generators::CommandGenerator::generator a new tap command
  #
  # Generates a new tap command under the cmd directory. The  
  # new command can be run from the command line using:
  # 
  #   % tap <command>
  #
  class CommandGenerator < Tap::Generator::Base
    
    def manifest(m, command_name)
      m.directory path('cmd')
      
      template_files do |source, target|
        m.template path('cmd', "#{command_name}.rb"), source, :command_name => command_name
      end
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tap-0.12.2 lib/tap/generator/generators/command/command_generator.rb
tap-0.12.3 lib/tap/generator/generators/command/command_generator.rb
tap-0.12.4 lib/tap/generator/generators/command/command_generator.rb