Class: Plasma::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/plasma/generator.rb

Overview

Handles generating new MCP server projects from templates

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @name = name
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/plasma/generator.rb', line 10

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/plasma/generator.rb', line 10

def options
  @options
end

Instance Method Details

#generateObject



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