Sha256: 2676f2746d40eecf4a2b53b3f1eb3b7b181671417ad787b5883983923f8c8bc1

Contents?: true

Size: 550 Bytes

Versions: 10

Compression:

Stored size: 550 Bytes

Contents

module Tap::Generator::Generators
  
  # :startdoc::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

10 entries across 10 versions & 2 rubygems

Version Path
bahuvrihi-tap-0.10.0 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.1 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.2 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.3 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.4 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.5 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.6 lib/tap/generator/generators/command/command_generator.rb
bahuvrihi-tap-0.10.7 lib/tap/generator/generators/command/command_generator.rb
tap-0.10.1 lib/tap/generator/generators/command/command_generator.rb
tap-0.10.0 lib/tap/generator/generators/command/command_generator.rb