lbhrr 2.33.1 → 2.34.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 +50 -41
  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: 8cea4fb91a71a03b9f35d814cf0fbae446bcfd7916c448304f4c9f40b58002bf
4
- data.tar.gz: b7c499d58394062b6400763ecc21e7450df62aea689a4e9924f2868f18502dd9
3
+ metadata.gz: 8afaaf726661bf972573ef79a48ad65865766f5a2a6424de544eb59333a5b4c8
4
+ data.tar.gz: f16f2426490ad0cd5d421a8c52e39895f122e57639e8b8482f03d1aeef36d546
5
5
  SHA512:
6
- metadata.gz: f3074cca0a145cc6bd06fc45cd4db888512cdf8165cb2f4f9364d4004c7a86fa5fc16ca00c7891c9388cd10e89eb788627b34dc498cd52b4f7a6c5d816e4d69b
7
- data.tar.gz: 26cb20e80896470b44e047d00abb9ceac09b51bff8d65a27526cf0313ffc9f13ac604107497e489bfb495861262064a002d3ff31552a0bc3b613ead113cf544b
6
+ metadata.gz: 853ce291d84ddb4b3c1f772ce577375e66fcb5039343423c2a6983b81d752f5e011af67d48fcd8d69ad8da7a93870d6c7d01e2bac95e9d3ebb9ba90d6e7f3ddb
7
+ data.tar.gz: 26608ee6937224dff5b988c63ef45f2cedef97515b7453cd2aa31f721c28ecaf19ea9f5429fa6748826e68d2fab6d5e1c190efe6639210105478e44f94cf2faf
data/exe/lbhrr CHANGED
@@ -298,60 +298,63 @@ 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"]
301
+
306
302
 
307
- containerize
303
+ end
308
304
 
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
305
 
316
- FileUtils.mkdir_p("build/src")
306
+ desc "assemble", "Build an application using the configuration from config/manifest.yml into a ruby gem"
307
+ def assemble(env = "next", version = nil)
308
+ config = load_configuration
309
+ name = config["name"]
310
+ image = config["image"]
317
311
 
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
312
+ containerize
323
313
 
324
- FileUtils.cp_r(item, "build/src/#{item}")
325
- end
314
+ # Check if we're in the root directory
315
+ if manifest?
316
+ # Create the build directory if it doesn't exist
317
+ if Dir.exist?("build")
318
+ FileUtils.rm_r("build")
319
+ end
326
320
 
327
- # Parameters for gemspec
328
- gem_name = config["name"]
329
- gem_version = version.nil? ? config["version"] : version
321
+ FileUtils.mkdir_p("build/src")
330
322
 
331
- # Ensure the build directory exists
332
- FileUtils.mkdir_p("build/lib")
323
+ # Copy all files and folders to the build directory
324
+ Dir.glob("*").each do |item|
325
+ next if item == "build" # Skip the build directory itself
326
+ next if item == ".git" # Skip the .git directory
327
+ next if item == "tmp" # Skip the config directory
333
328
 
334
- # Define the template files and their target locations
335
- template_dir = File.expand_path(File.join(File.dirname(__FILE__), "../", "templates"))
329
+ FileUtils.cp_r(item, "build/src/#{item}")
330
+ end
336
331
 
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
- }
332
+ # Parameters for gemspec
333
+ gem_name = config["name"]
334
+ gem_version = version.nil? ? config["version"] : version
342
335
 
343
- # Process each template
344
- templates.each do |template, target|
345
- process_template(template, target, binding)
346
- end
336
+ # Ensure the build directory exists
337
+ FileUtils.mkdir_p("build/lib")
347
338
 
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."
339
+ # Define the template files and their target locations
340
+ template_dir = File.expand_path(File.join(File.dirname(__FILE__), "../", "templates"))
341
+
342
+ templates = {
343
+ "#{template_dir}/lib/panamax.rb.erb" => "build/lib/#{gem_name}.rb",
344
+ "#{template_dir}/lib/rubygems_plugin.rb.erb" => "build/lib/rubygems_plugin.rb",
345
+ "#{template_dir}/panamax.gemspec.erb" => "build/#{gem_name}.gemspec"
346
+ }
347
+
348
+ # Process each template
349
+ templates.each do |template, target|
350
+ process_template(template, target, binding)
352
351
  end
353
- end
354
352
 
353
+ `cd build && gem build #{gem_name}.gemspec`
354
+ notify_terminal("Assembled #{name}", "Lbhhr")
355
+ else
356
+ puts "config/manifest file not found. Please ensure you are in the root directory of your project."
357
+ end
355
358
  end
356
359
 
357
360
 
@@ -402,6 +405,12 @@ class LbhrrCLI < Thor
402
405
  method_option :patch, type: :boolean, aliases: "-pa", desc: "Increment minor version"
403
406
  def hoist(name = nil)
404
407
  with_error_handling do
408
+
409
+ #clean up the build directory
410
+ if Dir.exist?("build")
411
+ FileUtils.rm_r("build")
412
+ end
413
+
405
414
  config = load_configuration
406
415
 
407
416
  msg =nil
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.33.1"
4
+ VERSION = "2.34.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.33.1
4
+ version: 2.34.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-27 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh