alm 0.3.0 → 0.3.2
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/alm +4 -2
- data/lib/alm/modules.rb +1 -1
- data/lib/alm/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: a46543a181a5fc3b6e46089d51f3ad3a53df625a7440d6739c32662a4f47cb33
|
|
4
|
+
data.tar.gz: 18afffc015e32c37584f3b4b546dc2c14bdab88b1c6d031c21cba4c5255db6bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c156cb988a4afcf2346c09ff429bc8ba2c3b8804be36ee71cf02f2f3731121e697a762f88976c8259be1b76239c619e1b7aee478d12f7be33e92a3b8bd5a4570
|
|
7
|
+
data.tar.gz: 1897707c463787ec4451048943ba0be30f969d5960406a8b1a2a317295ca38ee334236027d60fc978bd77d1131781838adffce82bea6b815dcf6bfee6d41267f
|
data/exe/alm
CHANGED
|
@@ -41,10 +41,12 @@ end
|
|
|
41
41
|
file = options[:file]
|
|
42
42
|
file_path = File.expand_path(file, Dir.pwd)
|
|
43
43
|
|
|
44
|
+
appimg_dir = File.expand_path(file, "#{Dir.home}/.local/appimage")
|
|
45
|
+
|
|
44
46
|
case options[:action]
|
|
45
47
|
when :add
|
|
46
48
|
# ADD VERIFICATION PROCESS
|
|
47
|
-
avp_verification = Verifications::AVP.process(
|
|
49
|
+
avp_verification = Verifications::AVP.process(appimg_dir)
|
|
48
50
|
case avp_verification
|
|
49
51
|
when :AVP_PPR
|
|
50
52
|
Modules::ADD.start([file])
|
|
@@ -62,7 +64,7 @@ when :remove
|
|
|
62
64
|
when :RVP_PPR
|
|
63
65
|
Modules::REMOVE.start([file])
|
|
64
66
|
when :RVP_NEXIST
|
|
65
|
-
puts "\e[31m[ERROR | RVP_NEXIST ] - alm: File #{file} not found in
|
|
67
|
+
puts "\e[31m[ERROR | RVP_NEXIST ] - alm: File #{file} not found in the AppImage directory\e[0m"
|
|
66
68
|
else
|
|
67
69
|
puts "\e[31m[ERROR | RVP_FAILED ] - alm: RVP Verification failed unexpectedly\e[0m"
|
|
68
70
|
end
|
data/lib/alm/modules.rb
CHANGED
|
@@ -31,7 +31,7 @@ module Modules
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
if system("mv '#{file_path}' '#{appimg_path}'")
|
|
34
|
-
puts "
|
|
34
|
+
puts ">>> - alm: #{file_arg} successfully added to #{appimg_path}\n"
|
|
35
35
|
else
|
|
36
36
|
puts "\e[31m[ERROR | RUNTIME_ERROR] - alm: Failed to move #{file_arg} to #{appimg_path}\e[0m"
|
|
37
37
|
end
|
data/lib/alm/version.rb
CHANGED