Module Webgen
In: lib/webgen/cli.rb
lib/webgen/config.rb
lib/webgen/gui/common.rb
lib/webgen/languages.rb
lib/webgen/plugin.rb
lib/webgen/rake/webgentask.rb
lib/webgen/test.rb
lib/webgen/website.rb
RuntimeError PluginParamNotFound PluginNotFound ConfigurationFileInvalid CmdParse::CommandParser CommandParser DirectoryInfo GalleryStyle WebSiteStyle WebSiteTemplate SipttraStyle Test::Unit::TestCase TestCase PluginTestCase TagTestCase CmdParse::Command ShowCommand CheckCommand UseCommand CreateCommand TSort DependencyHash Hash Comparable Language DEFAULT_WRAPPER_MODULE WebSite ::Logger Logger Logger Qt::MainWindow MainWindow Qt::Dialog NewWebsiteDialog Qt::TextEdit LogWidget ::Rake::TaskLib WebgenTask ConfigurationFile Website PluginManager PluginLoader PluginParamValueNotFound Dummy Color CliUtils PluginDefs lib/webgen/languages.rb lib/webgen/website.rb lib/webgen/gui/common.rb lib/webgen/plugin.rb lib/webgen/test.rb lib/webgen/cli.rb ClassMethods PluginDefs LanguageManager lib/webgen/gui/new_website_dlg.rb lib/webgen/gui/main.rb GUI lib/webgen/rake/webgentask.rb Rake Webgen dot/m_60_0.png

Methods

cli_main   data_dir  

Included Modules

PluginDefs

Classes and Modules

Module Webgen::GUI
Module Webgen::LanguageManager
Module Webgen::PluginDefs
Module Webgen::Rake
Class Webgen::CheckCommand
Class Webgen::CliUtils
Class Webgen::Color
Class Webgen::CommandParser
Class Webgen::ConfigurationFile
Class Webgen::ConfigurationFileInvalid
Class Webgen::CreateCommand
Class Webgen::DependencyHash
Class Webgen::DirectoryInfo
Class Webgen::Dummy
Class Webgen::GalleryStyle
Class Webgen::Language
Class Webgen::Logger
Class Webgen::PluginLoader
Class Webgen::PluginManager
Class Webgen::PluginNotFound
Class Webgen::PluginParamNotFound
Class Webgen::PluginParamValueNotFound
Class Webgen::PluginTestCase
Class Webgen::ShowCommand
Class Webgen::SipttraStyle
Class Webgen::TagTestCase
Class Webgen::TestCase
Class Webgen::UseCommand
Class Webgen::WebSite
Class Webgen::WebSiteStyle
Class Webgen::WebSiteTemplate
Class Webgen::Website

Constants

VERSION = [0, 4, 7]
AUTHOR = 'Thomas Leitner <t_leitner@gmx.at>'
SUMMARY = "webgen is a templated based static Web site generator."
DESCRIPTION = "webgen is a Web site generator implemented in Ruby. " \ "It is used to generate static Web pages from templates and page " \ "description files."
SRC_DIR = 'src'   The directory below a website directory in which the source files are.
PLUGIN_DIR = 'plugin'   The directory below a website directory in which the plugin files are.
DEFAULT_PLUGIN_LOAD_PROC = proc do # THE base class for all plugins. # # Information about a plugin can be set via the class method +infos+. If no name for the plugin # is set, then the full plugin class name (including the namespace modules) is used, with # slashes instead of the double colons. class Plugin

Public Class methods

Main program for the webgen CLI.

[Source]

     # File lib/webgen/cli.rb, line 452
452:   def self.cli_main
453:     Color.colorify if $stdout.isatty && !Config::CONFIG['arch'].include?( 'mswin32' )
454:     cmdparser = CommandParser.new
455:     cmdparser.parse
456:   end

Returns the data directory for webgen.

[Source]

    # File lib/webgen/config.rb, line 41
41:   def self.data_dir
42:     unless defined?( @@data_dir )
43:       @@data_dir =  File.expand_path( File.join( File.dirname( __FILE__ ), '..', '..', 'data', 'webgen') )
44: 
45:       @@data_dir = File.expand_path( File.join( Config::CONFIG["datadir"], "webgen0.4" ) ) if !File.exists?( @@data_dir )
46: 
47:       raise "Could not find webgen data directory! This is a bug, report it please!" unless File.directory?( @@data_dir )
48:     end
49:     @@data_dir
50:   end

[Validate]