raykit 0.0.484 → 0.0.486
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/dotnet.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a783d753ec3512f8a8669e793aa24c59a9d208372f96b2cd8913de84473b031d
|
4
|
+
data.tar.gz: c96e342a58d4324e0e92506cc272739dc92dfc0ad8cc9792852b023ab4ab0fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd9433b2589d63a1997f5e38a605cb5a2dffa320364e90d5368911532e6f5bd5c51260410cb1253b7b180b3dc30bbabb7f5930d9f77a66e5984a3a9640020c8c
|
7
|
+
data.tar.gz: 38e6a85a949962de3867f6e0e684e8464136f9d4deb1e76e4b7cd215ca5831a7432e9ed9952b537b10644ed00adb7f63a47fabe797b2821293ef486b419c4fb0
|
data/lib/raykit/dotnet.rb
CHANGED
@@ -139,7 +139,7 @@ module Raykit
|
|
139
139
|
# create the blazor server application
|
140
140
|
puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
|
141
141
|
PROJECT.run("dotnet new blazorserver -lang C# --name #{name} --output src/#{name}") unless File.exist?("src/#{name}/#{name}.csproj")
|
142
|
-
PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj")
|
142
|
+
PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj")
|
143
143
|
# generate project folders
|
144
144
|
["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
|
145
145
|
FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
|
@@ -154,13 +154,21 @@ module Raykit
|
|
154
154
|
# create the blazor server application
|
155
155
|
puts " creating examples/#{name}/#{name}.csproj" unless File.exist?("examples/#{name}/#{name}.csproj")
|
156
156
|
PROJECT.run("dotnet new blazorserver -lang C# --name #{name} --output examples/#{name}") unless File.exist?("examples/#{name}/#{name}.csproj")
|
157
|
-
PROJECT.run("dotnet sln #{name}.sln add examples/#{name}/#{name}.csproj")
|
157
|
+
PROJECT.run("dotnet sln #{name}.sln add examples/#{name}/#{name}.csproj")
|
158
158
|
# generate project folders
|
159
159
|
["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
|
160
160
|
FileUtils.mkdir_p("examples/#{name}/#{folder}") unless Dir.exist?("examples/#{name}/#{folder}")
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
# create a solution of the specified name and add all projects in the current directory
|
165
|
+
def self.create_solution(name)
|
166
|
+
PROJECT.run("dotnet new sln --name #{name}")
|
167
|
+
Dir.glob("*.csproj").each do |project|
|
168
|
+
PROJECT.run("dotnet sln #{name}.sln add #{project}")
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
164
172
|
def self.get_package_names(filename)
|
165
173
|
package_names = []
|
166
174
|
if File.exist?(filename) && filename.include?(".csproj")
|