Sha256: dc6ca6904fd3dd54b19958d5e825199883b058314f7ac96bb9c03f3b72c498ec
Contents?: true
Size: 858 Bytes
Versions: 3
Compression:
Stored size: 858 Bytes
Contents
module Ginst::Template require('templater') extend Templater::Manifold class GinstData < Templater::Generator desc 'Ginst data directory generator' def self.source_root File.join(File.dirname(__FILE__), 'ginst_template') end template :database, 'database.yml' template :config, 'webserver.yml' empty_directory :log, "log" empty_directory :projects, "projects" empty_directory :tmp, "tmp" empty_directory :plugins, "plugins" end class PluginData < Templater::Generator def self.source_root File.join(File.dirname(__FILE__), 'ginst_template/plugins') end glob! end add :base, GinstData add :plugins, PluginData def self.install_to(dir) run_cli(dir, 'base', '0.0', ['base']) run_cli(dir+'/plugins', 'plugins', '0.0', ['plugins']) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ginst-2009.12.8 | lib/ginst/template.rb |
ginst-2009.11.24 | lib/ginst/template.rb |
ginst-2009.11.23 | lib/ginst/template.rb |