harbr 0.0.1 → 0.0.3
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/harbr +9 -1
- data/lib/harbr/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: 90e673e0e33206181428629abfc84ab183035492ac8cc2086db07044508e2837
|
4
|
+
data.tar.gz: 50e1981a9f69c5bc1ee39ad0c7c9cbb4f0109026f7c34df7c291d5915ee16416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae41ff56df3bc5a5792a3285deb68eb1bcfc8f52377b2616260750ab848fe673066f5401385400c590a1d1c8abcbde2bd18e2645ced9c9978ea6755371e514c4
|
7
|
+
data.tar.gz: c6161573a840e91d343fdc7fad17074e06d352cbd722b8147b34178f7218771436f953ccd82e8408cdee6d327d72423b7ccaab457214c837ac0d7e6f38d4bfef
|
data/exe/harbr
CHANGED
@@ -22,6 +22,12 @@ class HarbrCLI < Thor
|
|
22
22
|
puts "Installing #{package} using Snap..."
|
23
23
|
system("sudo snap install #{package}") or raise "Failed to install #{package}"
|
24
24
|
end
|
25
|
+
|
26
|
+
def install_with_apt(package)
|
27
|
+
puts "Installing #{package} using apt..."
|
28
|
+
system("sudo apt install #{package}") or raise "Failed to install #{package}"
|
29
|
+
end
|
30
|
+
|
25
31
|
end
|
26
32
|
|
27
33
|
desc "setup", "Set up Harbr environment"
|
@@ -32,7 +38,7 @@ class HarbrCLI < Thor
|
|
32
38
|
# Check for Ruby, Traefik, and runit, and install if necessary
|
33
39
|
install_with_snap('ruby') unless command_exists?('ruby')
|
34
40
|
install_with_snap('traefik') unless command_exists?('traefik')
|
35
|
-
|
41
|
+
install_with_apt('runit') unless command_exists?('runit')
|
36
42
|
|
37
43
|
puts "Setup completed successfully."
|
38
44
|
end
|
@@ -45,6 +51,8 @@ class HarbrCLI < Thor
|
|
45
51
|
puts "Modified: #{modified}" unless modified.empty?
|
46
52
|
puts "Added: #{added}" unless added.empty?
|
47
53
|
puts "Removed: #{removed}" unless removed.empty?
|
54
|
+
|
55
|
+
puts directory
|
48
56
|
# Add your logic here for handling these changes
|
49
57
|
end
|
50
58
|
@@listener.start # not blocking
|
data/lib/harbr/version.rb
CHANGED