Sha256: 0ac6d05c14a83847fc094d0a8d201ad0058b728dadb01e94436d2768dd5bceea

Contents?: true

Size: 597 Bytes

Versions: 8

Compression:

Stored size: 597 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 app['cmd']
      
      template_files do |source, target|
        m.template app.filepath('cmd', "#{command_name}.rb"), source, :command_name => command_name
      end
    end
    
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
bahuvrihi-tap-0.11.0 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.11.1 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.11.2 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.12.0 lib/tap/generator/generators/command/command_generator.rb
tap-0.12.1 lib/tap/generator/generators/command/command_generator.rb
tap-0.11.0 lib/tap/generator/generators/command/command_generator.rb
tap-0.11.1 lib/tap/generator/generators/command/command_generator.rb
tap-0.12.0 lib/tap/generator/generators/command/command_generator.rb