lbhrr 2.32.1 → 2.33.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/lbhrr +55 -54
  3. data/lib/lbhrr/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f63fcc372df8525489ddf02ca8a023112a031ae24b5306614500022e556ccc8
4
- data.tar.gz: a94d96eb246401e944fa044950f4e128dbb4cf16bc45e508f274e6879f88d2cc
3
+ metadata.gz: 5a5a72e033c32aae92732521d690ca1bb95db44ffbea53d9be161f183e83b2bd
4
+ data.tar.gz: d063d071b65b6a56d29774185d5a3f975cecd7d491e90344d3adf8e5c8fc2286
5
5
  SHA512:
6
- metadata.gz: cec7337f7de060c7b98749195f9b2fe137735ffc88933077f8172c046b1e4867ab3cb76ffa9646de1a14dce3cb3b96469b824eaa94d53d6f35c06dde18921751
7
- data.tar.gz: 4f62371636aadfb7d53168e1f4631b028c53e73291040c365b2b16fd459ef0270dc5d123af4445d0ed7487381c21bce79ba1d420f8d10b2d6b85e725736976bb
6
+ metadata.gz: a4b0ec574e5d44c09db1ed6b91ea3267bf22a8d4dc382692f9984e53b63a095f216c2ec8c99be737299cc4e84a9791298d57af1e5d1f2c845b814e703e237ea1
7
+ data.tar.gz: d174498ec46033204e0685b279b1e801b1812c3db81999d8bb732256caad47399b491abb7f3aa5d3408f30eaa3060b5767686beacd0728971b4d970d90e4eb9d
data/exe/lbhrr CHANGED
@@ -301,60 +301,6 @@ class LbhrrCLI < Thor
301
301
 
302
302
 
303
303
 
304
- desc "assemble", "Build an application using the configuration from config/manifest.yml into a ruby gem"
305
- def assemble(env = "next", version = nil)
306
- config = load_configuration
307
- name = config["name"]
308
- image = config["image"]
309
-
310
- containerize
311
-
312
- # Check if we're in the root directory
313
- if manifest?
314
- # Create the build directory if it doesn't exist
315
- if Dir.exist?("build")
316
- FileUtils.rm_r("build")
317
- end
318
-
319
- FileUtils.mkdir_p("build/src")
320
-
321
- # Copy all files and folders to the build directory
322
- Dir.glob("*").each do |item|
323
- next if item == "build" # Skip the build directory itself
324
- next if item == ".git" # Skip the .git directory
325
- next if item == "tmp" # Skip the config directory
326
-
327
- FileUtils.cp_r(item, "build/src/#{item}")
328
- end
329
-
330
- # Parameters for gemspec
331
- gem_name = config["name"]
332
- gem_version = version.nil? ? config["version"] : version
333
-
334
- # Ensure the build directory exists
335
- FileUtils.mkdir_p("build/lib")
336
-
337
- # Define the template files and their target locations
338
- template_dir = File.expand_path(File.join(File.dirname(__FILE__), "../", "templates"))
339
-
340
- templates = {
341
- "#{template_dir}/lib/panamax.rb.erb" => "build/lib/#{gem_name}.rb",
342
- "#{template_dir}/lib/rubygems_plugin.rb.erb" => "build/lib/rubygems_plugin.rb",
343
- "#{template_dir}/panamax.gemspec.erb" => "build/#{gem_name}.gemspec"
344
- }
345
-
346
- # Process each template
347
- templates.each do |template, target|
348
- process_template(template, target, binding)
349
- end
350
-
351
- `cd build && gem build #{gem_name}.gemspec`
352
- notify_terminal("Assembled #{name}", "Lbhhr")
353
- else
354
- puts "config/manifest file not found. Please ensure you are in the root directory of your project."
355
- end
356
- end
357
-
358
304
  end
359
305
 
360
306
 
@@ -486,6 +432,61 @@ class LbhrrCLI < Thor
486
432
  end
487
433
  end
488
434
 
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
+
489
490
  desc "version", "Display the version of Lbhrr"
490
491
  def version
491
492
  with_error_handling do
data/lib/lbhrr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lbhrr
4
- VERSION = "2.32.1"
4
+ VERSION = "2.33.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbhrr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.1
4
+ version: 2.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-26 00:00:00.000000000 Z
11
+ date: 2024-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh