Sha256: 751a0309ef4577a598cfffd1569c6f47d3008fae0b8eb1ed3cde1daf4f4c62c8

Contents?: true

Size: 574 Bytes

Versions: 3

Compression:

Stored size: 574 Bytes

Contents

module Hobo
  class SubsiteTaglibGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)
    include Generators::Hobo::InviteOnly
    include Generators::Hobo::Taglib

    def self.banner
      "rails generate hobo:subsite_taglib NAME [options]"
    end

    def generate_taglib
      template "taglib.dryml.erb", File.join('app/views/taglibs', "#{file_name}_site.dryml")
      Rails::Generators.invoke('hobo:install_default_plugins', ["--subsite=#{file_name}", "--theme=hobo_clean_admin", "--ui_theme=flick"])
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hobo-1.4.0.pre8 lib/generators/hobo/subsite_taglib/subsite_taglib_generator.rb
hobo-1.4.0.pre7 lib/generators/hobo/subsite_taglib/subsite_taglib_generator.rb
hobo-1.4.0.pre6 lib/generators/hobo/subsite_taglib/subsite_taglib_generator.rb