Class Uttk::Generators::StrategyGenerator
In: lib/uttk/generators/strategy_generator.rb
Parent: Uttk::Generators::Generator
Copyright:Copyright (c) 2005 Uttk Team. All rights reserved.
Author:Nicolas Pouillard <ertai@lrde.epita.fr>.
License:LGPL
Revision:$Id: /w/fey/uttk/trunk/lib/uttk/generators/strategy_generator.rb 21975 2006-02-19T22:24:11.182512Z pouillar $

Methods

Public Instance methods

[Source]

# File lib/uttk/generators/strategy_generator.rb, line 8
  def manifest
    # FIXME do not ignore class_path
    record do |m|
      # Check for class naming collisions.
      m.class_collisions class_path, class_name, "Uttk::Strategies::#{class_name}"

      # Source and test directories.
      m.directory root/lib/uttk/strategies
      m.directory root/test/unit/strategies

      # Source and test templates.
      m.template 'strategy.rb',  root/lib/uttk/strategies/"#{class_name}.rb"
      m.template 'strategy.yml', root/test/functional/"#{file_name}.yml"
    end
  end

[Source]

# File lib/uttk/generators/strategy_generator.rb, line 24
  def module_name
    :Strategies
  end

[Validate]