raykit 0.0.484 → 0.0.486

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/dotnet.rb +10 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee3118f9e939fe03a6dc5c4e3cebb59f60e4af68d1383e52b23455e77697a2aa
4
- data.tar.gz: '069e1068168b325da271d6f74d4ea678d861bb5fd69159f4df06f20d213c672d'
3
+ metadata.gz: a783d753ec3512f8a8669e793aa24c59a9d208372f96b2cd8913de84473b031d
4
+ data.tar.gz: c96e342a58d4324e0e92506cc272739dc92dfc0ad8cc9792852b023ab4ab0fe7
5
5
  SHA512:
6
- metadata.gz: fdabf34e72bf499e7e2988479df629330dc9608511760002923253760b66b01f8ca9228134ff513ae74e7f5a4fa7eec9fae0922588b8647a7dedc395a433391f
7
- data.tar.gz: cc5a49526045f0987d8c63116f4065851c5c5a8a816a033c189c57259d1be7e22e4d676aacbd5ab83a4fd79beb6dbe9d6e3d2ece99ca9cf5965af29cf32893f8
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") unless File.exist?("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") unless File.exist?("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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.484
4
+ version: 0.0.486
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow