lbhrr 1.0.12 → 1.0.14

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 +14 -5
  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: 91fd4a2fb48ee0aa24a2ab1ee1a32eaee8754c2c6e7fa9b66c2c490c1110e79c
4
- data.tar.gz: 83c946569babfa407980890bbb889f4f08ffb10ee5366df055fe993452e839b1
3
+ metadata.gz: 25e90a2b243aace3a947a0eff39b02f2c26bba159108b901ffbbb90027cb647a
4
+ data.tar.gz: d2eb572f8a1310a2c23f5c7e1bc760283c21a023da56e06f879394dfb7526b3c
5
5
  SHA512:
6
- metadata.gz: 9bc09acbe05020346c22d66bcdcd51f48572717e205d5a5c47f48e4c0b57801c40f396f4bed1c1adbaf9f9250d63e1291788870c27dc08c8716cd1f569b72ec0
7
- data.tar.gz: 863bd1dbbd519a92b610be1437b95d577f30d9d35010fb2f6e7743534897e94c0febf2f109857afe2e7020fe0717c89916384f09f9fbdbeaf329dffc7983b878
6
+ metadata.gz: 95fe5d60e5b94f0e7a08eb32543a555d24595d87f56e8ace942bb96701e6657cda2796b4ec868a50430b5b645893e9277854bff143d34074d85297c4169deb40
7
+ data.tar.gz: f202266c171819ae6ef96a2b12483615eb4c0a06a988f1b34770f60deacc8cb066eb629c41af0bdf232ecfb9e22c1a7336688c0d65be8dccbfab3a22593c3731
data/exe/lbhrr CHANGED
@@ -21,11 +21,11 @@ class LbhrrCLI < Thor
21
21
  vendor_path = File.join(Dir.pwd, "vendor")
22
22
  FileUtils.rm_rf(vendor_path) if Dir.exist?(vendor_path)
23
23
  `bundle config set --local path 'vendor/bundle'`
24
- `bundle install` or raise "Bundle install failed"
24
+ system "bundle install" or raise "Bundle install failed"
25
25
  # Check if the repository is clean
26
26
  puts "Git repository is dirty, committing changes..."
27
- `git add .` or raise "Failed to add changes to Git"
28
- `git commit -m 'packaged #{version}'` or raise "Failed to commit changes to Git"
27
+ system("git add .") or raise "Failed to add changes to Git"
28
+ system("git commit -m 'packaged #{version}'") or raise "Failed to commit changes to Git"
29
29
  puts "Packaging completed successfully."
30
30
  rescue => e
31
31
  puts "Packaging error: #{e.message}"
@@ -98,7 +98,7 @@ class LbhrrCLI < Thor
98
98
 
99
99
  def create_run_file
100
100
  run_file_path = File.join(Dir.pwd, "exe", "run")
101
- run_file_content = "#!/bin/sh\nbundle exec puma -p $1"
101
+ run_file_content = "#!/bin/sh\n HARBR_ENV=$2 bundle exec puma -p $1"
102
102
  exe_directory = File.join(Dir.pwd, "exe")
103
103
 
104
104
  Dir.mkdir(exe_directory) unless Dir.exist?(exe_directory)
@@ -256,10 +256,19 @@ class LbhrrCLI < Thor
256
256
  config = load_configuration
257
257
  host = config["host"]
258
258
  user = config["user"]
259
- exec "ssh #{user}@#{host} 'harbr logs #{container_name}'"
259
+ exec "ssh #{user}@#{host} 'harbr peek #{container_name}'"
260
260
  end
261
261
 
262
262
 
263
+ desc "activity", "harbr logs "
264
+ def activity
265
+ container_name = File.basename(Dir.pwd)
266
+ config = load_configuration
267
+ host = config["host"]
268
+ user = config["user"]
269
+ exec "ssh #{user}@#{host} 'harbr logs'"
270
+ end
271
+
263
272
 
264
273
  desc "hoist", "Deploy an application using the configuration from config/manifest.yml to production"
265
274
  def hoist
data/lib/lbhrr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lbhrr
4
- VERSION = "1.0.12"
4
+ VERSION = "1.0.14"
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: 1.0.12
4
+ version: 1.0.14
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: 2023-12-15 00:00:00.000000000 Z
11
+ date: 2023-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh