raykit 0.0.485 → 0.0.487
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: 10cb8d6da9eed74efb76b8b4f049972e67253d9d76809b83abe9a329d54213af
|
4
|
+
data.tar.gz: e7c0adc815835494f2b2f58189b8418a1366fe808d715c91c264501e366f703a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01bd6786f20b3a24e82bebe93f31bf329f1901f427c36f7d4651b61dd3f96ee4202f8db7f6d98d9f80650d8ede75211b781f1b790d8ab35f36fd4e059e047696
|
7
|
+
data.tar.gz: a5cfdad5d564e24e25877488d03ed82a6c65777e92e8c8fd1eaabe46a82d67f400437a98954ad032a50bb4a3e14e6868a7608db1f595ddcf68dc78e177485116
|
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")
|