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