Class: Hyraft::Rule::AssembleCommand
- Inherits:
-
Object
- Object
- Hyraft::Rule::AssembleCommand
- Defined in:
- lib/hyraft/rule/assemble_command.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ AssembleCommand
constructor
A new instance of AssembleCommand.
Constructor Details
#initialize(args) ⇒ AssembleCommand
Returns a new instance of AssembleCommand.
12 13 14 15 16 |
# File 'lib/hyraft/rule/assemble_command.rb', line 12 def initialize(args) @resource_input = args[0] # Can be "users" or "admin-app/users" @target_dir = args[1] || "." parse_resource_input end |
Class Method Details
.start(args) ⇒ Object
8 9 10 |
# File 'lib/hyraft/rule/assemble_command.rb', line 8 def self.start(args) new(args).execute end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/hyraft/rule/assemble_command.rb', line 18 def execute return show_manifest unless @resource_name puts "\e[35m🔧 Hyraft Assembly: Assembling '#{@resource_name}' resource\e[0m" puts "\e[36mApp Folder: #{@app_folder}\e[0m" if @app_folder != "web-app" assemble_engine_layer assemble_adapter_layer puts "\e[32m✅ Assembly Complete: '#{@resource_name}' resource assembled\e[0m" puts "\e[36mNext steps:\e[0m" puts " ⚡ Implement business logic in circuits" puts " 🌐 Connect web adapters to router" puts " 📊 Create database table manually" end |