Class: Makit::Cli::Generators::DotnetGenerator
Overview
Generator for .NET projects
Instance Attribute Summary
#name, #options
Instance Method Summary
collapse
#generate, #initialize
Instance Method Details
#display_custom_next_steps ⇒ Object
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_definitions ⇒ Object
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_type ⇒ Object
20
21
22
|
# File 'lib/makit/cli/generators/dotnet_generator.rb', line 20
def project_type
".NET project"
end
|