Class: Makit::Cli::Generators::DotnetGenerator

Inherits:
BaseGenerator show all
Defined in:
lib/makit/cli/generators/dotnet_generator.rb

Overview

Generator for .NET projects

Instance Attribute Summary

Attributes inherited from BaseGenerator

#name, #options

Instance Method Summary collapse

Methods inherited from BaseGenerator

#generate, #initialize

Constructor Details

This class inherits a constructor from Makit::Cli::Generators::BaseGenerator

Instance Method Details

#display_custom_next_stepsObject



24
25
26
27
28
# File 'lib/makit/cli/generators/dotnet_generator.rb', line 24

def display_custom_next_steps
  puts "  dotnet build"
  puts "  dotnet run"
  super
end

#file_definitionsObject



11
12
13
14
15
16
17
18
# File 'lib/makit/cli/generators/dotnet_generator.rb', line 11

def file_definitions
  {
    "#{name}.csproj" => :csproj_content,
    "Program.cs" => :program_cs_content,
    "README.md" => :readme_content,
    ".gitignore" => :gitignore_content,
  }
end

#project_typeObject



20
21
22
# File 'lib/makit/cli/generators/dotnet_generator.rb', line 20

def project_type
  ".NET project"
end