module Cog

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}.

Constants

VERSION

Public Class Methods

initialize_project() click to toggle source

Prepare the project in the present working directory for use with cog @return [nil]

# 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
seed(name, &block) click to toggle source
# File lib/cog.rb, line 42
def self.seed(name, &block)
  s = DSL::SeedDSL.new name
  block.call s unless block.nil?
  s.seed
end