class Blacksand::Generators::NewSiteGenerator
Public Instance Methods
new_site()
click to toggle source
# File lib/generators/blacksand/new_site_generator.rb, line 7 def new_site puts "Create Site: #{name}" # site yaml create_file("db/sites/#{name}.yml", <<-YAML) # 模板 templates: # - your template # 原型 prototypes: # - your prototype YAML # site theme if yes?("Install theme #{name} ?(Y/n)") generate 'themes_on_rails:theme', name end end