lbhrr 2.33.0 → 2.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/lbhrr +51 -55
- data/lib/lbhrr/version.rb +1 -1
- 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: 8cea4fb91a71a03b9f35d814cf0fbae446bcfd7916c448304f4c9f40b58002bf
|
|
4
|
+
data.tar.gz: b7c499d58394062b6400763ecc21e7450df62aea689a4e9924f2868f18502dd9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3074cca0a145cc6bd06fc45cd4db888512cdf8165cb2f4f9364d4004c7a86fa5fc16ca00c7891c9388cd10e89eb788627b34dc498cd52b4f7a6c5d816e4d69b
|
|
7
|
+
data.tar.gz: 26cb20e80896470b44e047d00abb9ceac09b51bff8d65a27526cf0313ffc9f13ac604107497e489bfb495861262064a002d3ff31552a0bc3b613ead113cf544b
|
data/exe/lbhrr
CHANGED
|
@@ -298,8 +298,59 @@ class LbhrrCLI < Thor
|
|
|
298
298
|
end
|
|
299
299
|
end
|
|
300
300
|
|
|
301
|
+
desc "assemble", "Build an application using the configuration from config/manifest.yml into a ruby gem"
|
|
302
|
+
def assemble(env = "next", version = nil)
|
|
303
|
+
config = load_configuration
|
|
304
|
+
name = config["name"]
|
|
305
|
+
image = config["image"]
|
|
306
|
+
|
|
307
|
+
containerize
|
|
308
|
+
|
|
309
|
+
# Check if we're in the root directory
|
|
310
|
+
if manifest?
|
|
311
|
+
# Create the build directory if it doesn't exist
|
|
312
|
+
if Dir.exist?("build")
|
|
313
|
+
FileUtils.rm_r("build")
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
FileUtils.mkdir_p("build/src")
|
|
317
|
+
|
|
318
|
+
# Copy all files and folders to the build directory
|
|
319
|
+
Dir.glob("*").each do |item|
|
|
320
|
+
next if item == "build" # Skip the build directory itself
|
|
321
|
+
next if item == ".git" # Skip the .git directory
|
|
322
|
+
next if item == "tmp" # Skip the config directory
|
|
323
|
+
|
|
324
|
+
FileUtils.cp_r(item, "build/src/#{item}")
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Parameters for gemspec
|
|
328
|
+
gem_name = config["name"]
|
|
329
|
+
gem_version = version.nil? ? config["version"] : version
|
|
330
|
+
|
|
331
|
+
# Ensure the build directory exists
|
|
332
|
+
FileUtils.mkdir_p("build/lib")
|
|
333
|
+
|
|
334
|
+
# Define the template files and their target locations
|
|
335
|
+
template_dir = File.expand_path(File.join(File.dirname(__FILE__), "../", "templates"))
|
|
336
|
+
|
|
337
|
+
templates = {
|
|
338
|
+
"#{template_dir}/lib/panamax.rb.erb" => "build/lib/#{gem_name}.rb",
|
|
339
|
+
"#{template_dir}/lib/rubygems_plugin.rb.erb" => "build/lib/rubygems_plugin.rb",
|
|
340
|
+
"#{template_dir}/panamax.gemspec.erb" => "build/#{gem_name}.gemspec"
|
|
341
|
+
}
|
|
301
342
|
|
|
343
|
+
# Process each template
|
|
344
|
+
templates.each do |template, target|
|
|
345
|
+
process_template(template, target, binding)
|
|
346
|
+
end
|
|
302
347
|
|
|
348
|
+
`cd build && gem build #{gem_name}.gemspec`
|
|
349
|
+
notify_terminal("Assembled #{name}", "Lbhhr")
|
|
350
|
+
else
|
|
351
|
+
puts "config/manifest file not found. Please ensure you are in the root directory of your project."
|
|
352
|
+
end
|
|
353
|
+
end
|
|
303
354
|
|
|
304
355
|
end
|
|
305
356
|
|
|
@@ -432,61 +483,6 @@ class LbhrrCLI < Thor
|
|
|
432
483
|
end
|
|
433
484
|
end
|
|
434
485
|
|
|
435
|
-
desc "assemble", "Build an application using the configuration from config/manifest.yml into a ruby gem"
|
|
436
|
-
def assemble(env = "next", version = nil)
|
|
437
|
-
config = load_configuration
|
|
438
|
-
name = config["name"]
|
|
439
|
-
image = config["image"]
|
|
440
|
-
|
|
441
|
-
containerize
|
|
442
|
-
|
|
443
|
-
# Check if we're in the root directory
|
|
444
|
-
if manifest?
|
|
445
|
-
# Create the build directory if it doesn't exist
|
|
446
|
-
if Dir.exist?("build")
|
|
447
|
-
FileUtils.rm_r("build")
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
FileUtils.mkdir_p("build/src")
|
|
451
|
-
|
|
452
|
-
# Copy all files and folders to the build directory
|
|
453
|
-
Dir.glob("*").each do |item|
|
|
454
|
-
next if item == "build" # Skip the build directory itself
|
|
455
|
-
next if item == ".git" # Skip the .git directory
|
|
456
|
-
next if item == "tmp" # Skip the config directory
|
|
457
|
-
|
|
458
|
-
FileUtils.cp_r(item, "build/src/#{item}")
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
# Parameters for gemspec
|
|
462
|
-
gem_name = config["name"]
|
|
463
|
-
gem_version = version.nil? ? config["version"] : version
|
|
464
|
-
|
|
465
|
-
# Ensure the build directory exists
|
|
466
|
-
FileUtils.mkdir_p("build/lib")
|
|
467
|
-
|
|
468
|
-
# Define the template files and their target locations
|
|
469
|
-
template_dir = File.expand_path(File.join(File.dirname(__FILE__), "../", "templates"))
|
|
470
|
-
|
|
471
|
-
templates = {
|
|
472
|
-
"#{template_dir}/lib/panamax.rb.erb" => "build/lib/#{gem_name}.rb",
|
|
473
|
-
"#{template_dir}/lib/rubygems_plugin.rb.erb" => "build/lib/rubygems_plugin.rb",
|
|
474
|
-
"#{template_dir}/panamax.gemspec.erb" => "build/#{gem_name}.gemspec"
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
# Process each template
|
|
478
|
-
templates.each do |template, target|
|
|
479
|
-
process_template(template, target, binding)
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
`cd build && gem build #{gem_name}.gemspec`
|
|
483
|
-
notify_terminal("Assembled #{name}", "Lbhhr")
|
|
484
|
-
else
|
|
485
|
-
puts "config/manifest file not found. Please ensure you are in the root directory of your project."
|
|
486
|
-
end
|
|
487
|
-
end
|
|
488
|
-
|
|
489
|
-
|
|
490
486
|
desc "version", "Display the version of Lbhrr"
|
|
491
487
|
def version
|
|
492
488
|
with_error_handling do
|
data/lib/lbhrr/version.rb
CHANGED