/usr/lib/ruby/1.8/generators/full.rb is in libmerb-slices-ruby1.8 1.0.12+dfsg-4fakesync1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | module Merb::Generators
class FullSliceGenerator < BaseSliceGenerator
def initialize(*args)
Merb.disable(:initfile)
super
end
def self.source_root
File.join(File.dirname(__FILE__), 'templates', 'full')
end
glob!
common_template :javascript, 'public/javascripts/master.js'
common_template :stylesheet, 'public/stylesheets/master.css'
common_template :license, 'LICENSE'
common_template :merbtasks, 'lib/%base_name%/merbtasks.rb'
common_template :slicetasks, 'lib/%base_name%/slicetasks.rb'
common_template :spectasks, 'lib/%base_name%/spectasks.rb'
first_argument :name, :required => true
option :testing_framework, :default => :rspec,
:desc => 'Testing framework to use (one of: rspec, test_unit).'
def destination_root
File.join(@destination_root, base_name)
end
end
add_private :full_slice, FullSliceGenerator
end
|