Module: Cog
- Extended by:
- Config
- Defined in:
- lib/cog.rb,
lib/cog/dsl.rb,
lib/cog/seed.rb,
lib/cog/config.rb,
lib/cog/embeds.rb,
lib/cog/errors.rb,
lib/cog/plugin.rb,
lib/cog/helpers.rb,
lib/cog/version.rb,
lib/cog/language.rb,
lib/cog/seed/var.rb,
lib/cog/generator.rb,
lib/cog/controllers.rb,
lib/cog/dsl/cogfile.rb,
lib/cog/dsl/seed_dsl.rb,
lib/cog/seed/feature.rb,
lib/cog/spec_helpers.rb,
lib/cog/embed_context.rb,
lib/cog/dsl/feature_dsl.rb,
lib/cog/dsl/language_dsl.rb,
lib/cog/generator/filters.rb,
lib/cog/generator_sandbox.rb,
lib/cog/spec_helpers/runner.rb,
lib/cog/config/plugin_config.rb,
lib/cog/helpers/file_scanner.rb,
lib/cog/config/project_config.rb,
lib/cog/helpers/cascading_set.rb,
lib/cog/spec_helpers/matchers.rb,
lib/cog/config/language_config.rb,
lib/cog/generator/file_methods.rb,
lib/cog/generator/language_methods.rb,
lib/cog/controllers/plugin_controller.rb,
lib/cog/controllers/template_controller.rb,
lib/cog/controllers/generator_controller.rb,
lib/cog/generator/language_methods/scope.rb,
lib/cog/spec_helpers/matchers/match_maker.rb
Overview
This top level module serves as a singleton instance of the Config interface. It is configured with various cogfiles, which are evaluated as instances of DSL::Cogfile.
Defined Under Namespace
Modules: Config, Controllers, DSL, Embeds, Errors, Generator, Helpers, SpecHelpers Classes: EmbedContext, GeneratorSandbox, Language, Plugin, Seed
Constant Summary collapse
- VERSION =
'1.0.0'
Instance Attribute Summary
Attributes included from Config
#generator_path, #plugin_path, #template_path
Attributes included from Config::ProjectConfig
#project_cogfile_path, #project_generator_path, #project_path, #project_plugin_path, #project_root, #project_template_path
Class Method Summary collapse
-
.initialize_project ⇒ nil
Prepare the project in the present working directory for use with
cog. - .seed(name, &block) ⇒ Object
Methods included from Config
gem_dir, gems_root_dir, prepare, show_fullpaths?, user_cogfile, user_dir
Methods included from Config::PluginConfig
#plugin, #plugins, #register_plugins
Methods included from Config::LanguageConfig
#activate_language, #active_language, #language, #language_extensions, #language_for, #language_summary
Methods included from Config::ProjectConfig
#project?, #supported_project_files
Class Method Details
.initialize_project ⇒ nil
Prepare the project in the present working directory for use with cog
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cog.rb', line 31 def self.initialize_project @cogfile_type = :project @prefix = 'cog/' Generator.stamp 'cog/Cogfile', 'Cogfile', :absolute_destination => true, :binding => binding, :once => true @cogfile_type = :user @prefix = '' Generator.stamp 'cog/Cogfile', user_cogfile, :absolute_destination => true, :binding => binding, :once => true nil end |