Sha256: f0d390fa420bb71b31a78c97b43e5afe094d022898bf92198ec2fc84630098e5

Contents?: true

Size: 1.35 KB

Versions: 14

Compression:

Stored size: 1.35 KB

Contents

class ThemeGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|

      # Theme directory
      m.directory "themes/#{file_name}"
      m.directory "themes/#{file_name}/locale"
      m.directory "themes/#{file_name}/views"
      m.directory "themes/#{file_name}/views/layouts"
      m.directory "themes/#{file_name}/views/layouts/global"

      # basic theme files
      m.file "views/_head.html.erb", "themes/#{file_name}/views/layouts/global/_head.html.erb"
      m.file "views/_header.html.erb", "themes/#{file_name}/views/layouts/global/_header.html.erb"
      m.file "views/_footer.html.erb", "themes/#{file_name}/views/layouts/global/_footer.html.erb"
      m.file "views/default.html.erb", "themes/#{file_name}/views/layouts/default.html.erb"

      # description
      m.file "description.txt", "themes/#{file_name}/description.txt"

      # images
      m.directory "public/images/#{file_name}"
      m.file "preview.gif", "public/images/#{file_name}/preview.gif"

      #stylesheets
      m.directory "public/stylesheets/themes"
      m.directory "public/stylesheets/themes/#{file_name}"
      m.file "stylesheets/styles.css", "public/stylesheets/#{file_name}.css"

      # localization
      m.directory "themes/#{file_name}/locales"
      m.file "locales/en.yml", "themes/#{file_name}/locales/en.yml"

      m.readme "INSTALL"
    end
  end

end



Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
disguise-3.0.0 generators/theme/theme_generator.rb
disguise-2.0.0 generators/theme/theme_generator.rb
disguise-0.4.0 generators/theme/theme_generator.rb
disguise-0.3.12 generators/theme/theme_generator.rb
disguise-0.3.11 generators/theme/theme_generator.rb
disguise-0.3.10 generators/theme/theme_generator.rb
disguise-0.3.8 generators/theme/theme_generator.rb
disguise-0.3.7 generators/theme/theme_generator.rb
disguise-0.3.6 generators/theme/theme_generator.rb
disguise-0.3.1 generators/theme/theme_generator.rb
disguise-0.3.2 generators/theme/theme_generator.rb
disguise-0.3.3 generators/theme/theme_generator.rb
disguise-0.3.4 generators/theme/theme_generator.rb
disguise-0.3.5 generators/theme/theme_generator.rb