Sha256: 7dfbf7ed6b9d5cdcc16f5a0a839715621df1e4d2b9666fa3418260fa6423a7b4
Contents?: true
Size: 855 Bytes
Versions: 3
Compression:
Stored size: 855 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")) m.file('control_center.html.erb', File.join(layouts_path, "control_center.html.erb")) # copy the initializer over m.file 'control_center.rb', File.join("config", "initializers", "control_center.rb") end end end
Version data entries
3 entries across 3 versions & 1 rubygems