raykit 0.0.485 → 0.0.487

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: fa33898c3f0d9c99caf1f5f760a0fcd6f44f190a75cf4b3a9d1cb202656772ce
4
- data.tar.gz: cb65f29a8ed1b0205288f34e7cb771f5fa7217450a4f95d0cf6db2e801626456
3
+ metadata.gz: 10cb8d6da9eed74efb76b8b4f049972e67253d9d76809b83abe9a329d54213af
4
+ data.tar.gz: e7c0adc815835494f2b2f58189b8418a1366fe808d715c91c264501e366f703a
5
5
  SHA512:
6
- metadata.gz: aaa9c6d18eb8d6ac51dd86d9b46d533791857073093a02fb447924cd547fe94172d4ac442bc1e5dab12158852c35ffe8838445e28f06fb545acb5d0d9b909b32
7
- data.tar.gz: d69203133620a781106fb5080861d0d1a305449ca5f5c89593ee40690bda082ca16b0de3f7cb35850617d1f7835410c7456d08db92390eb3444952145753a894
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")
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.485
4
+ version: 0.0.487
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow