Class: Plasma::Generator
- Inherits:
-
Object
- Object
- Plasma::Generator
- Defined in:
- lib/plasma/generator.rb
Overview
Handles generating new MCP server projects from templates
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, options = {}) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(name, options = {}) ⇒ Generator
Returns a new instance of Generator.
12 13 14 15 |
# File 'lib/plasma/generator.rb', line 12 def initialize(name, = {}) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/plasma/generator.rb', line 10 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/plasma/generator.rb', line 10 def @options end |
Instance Method Details
#generate ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/plasma/generator.rb', line 17 def generate create_project_directory create_directory_structure generate_files_from_templates copy_static_files move_version_file end |