Sha256: fe07397c6661acde47083cf0152097e0254b2bf79c516a166686105047939558
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
class ControlCenterGenerator < Rails::Generator::Base def banner "Usage #{$0} #{spec.name}" end def manifest record do |m| # set up the stylesheet m.directory('public/stylesheets') m.file('control_center.css', 'public/stylesheets/control_center.css') # copy the layouts over layouts_path = 'app/views/layouts' m.directory(layouts_path) m.file('_tabs.html.erb', File.join(layouts_path, "_tabs.html.erb")) m.file('_header_links.html.erb', File.join(layouts_path, "_header_links.html.erb")) # copy the initializer over m.file 'control_center.rb', File.join("config", "initializers", "control_center.rb") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
control_center-1.0.2 | generators/control_center/control_center_generator.rb |
control_center-1.0.1 | generators/control_center/control_center_generator.rb |