alm 0.1.0 → 0.2.0
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/lib/alm/modules.rb +8 -8
- 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: 31c1dfda6cae9629b240bd083ffc64a68565095c268622b6ecb990e76c220c89
|
|
4
|
+
data.tar.gz: e2ab3c276039a2086524e18e500873d99b29e71f49ac0c9088cc08dfedd214f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37ce126b7de676fb89ccc5e03df27ce28c6348e3165f6885865c2b2c63da8d2bdbbfd387b3148d2a886a27d45eb5dab249401ebfced5f0710439b45f7f572daa
|
|
7
|
+
data.tar.gz: ff456a7d8377eb846e195999966562005b717765e9a618cac0a1cc2855216d4652f94bf7c7b8a1d6815ddde35fdc0d1dad527a3c8f47e0551fb3127d428d4d41
|
data/lib/alm/modules.rb
CHANGED
|
@@ -12,18 +12,18 @@ module Modules
|
|
|
12
12
|
|
|
13
13
|
begin
|
|
14
14
|
unless File.directory?(appimg_path)
|
|
15
|
-
puts "\e[33m
|
|
16
|
-
puts "\e[33m
|
|
15
|
+
puts "\e[33m - - - [SUBP] - alm: No appimage directory found\e[0m"
|
|
16
|
+
puts "\e[33m - - - [SUBP] - alm: Creating appimage directory on #{appimg_path}...\e[0m"
|
|
17
17
|
FileUtils.mkdir_p(appimg_path)
|
|
18
|
-
puts "\e[33m
|
|
18
|
+
puts "\e[33m - - - [SUBP] - alm: Appimage directory created successfully\e[0m"
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
puts ">>> - alm: Adding #{file_arg} to #{dest_path}
|
|
21
|
+
puts "\n>>> - alm: Adding #{file_arg} to #{dest_path}...\n"
|
|
22
22
|
|
|
23
23
|
unless File.executable?(file_path)
|
|
24
|
-
puts "\e[33m
|
|
24
|
+
puts "\e[33m - - - [SUBP] - alm: Securing executable permissions for #{file_arg}...\e[0m"
|
|
25
25
|
if system("chmod +x '#{file_path}'")
|
|
26
|
-
puts "\e[
|
|
26
|
+
puts "\e[33m - - - [SUBP] - alm: Executable rights granted to #{file_arg}\e[0m"
|
|
27
27
|
else
|
|
28
28
|
puts "\e[31m[ERROR | RUNTIME_ERROR] - alm: Failed to grant executable rights to #{file_arg}\e[0m"
|
|
29
29
|
return
|
|
@@ -31,7 +31,7 @@ module Modules
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
if system("mv '#{file_path}' '#{appimg_path}'")
|
|
34
|
-
puts "\
|
|
34
|
+
puts "\n>>> - 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
|
|
@@ -55,7 +55,7 @@ module Modules
|
|
|
55
55
|
begin
|
|
56
56
|
if File.exist?(file_path)
|
|
57
57
|
File.delete(file_path)
|
|
58
|
-
puts "\
|
|
58
|
+
puts "\n>>> - alm: #{File.basename(file_arg)} successfully removed from #{appimg_path}\n"
|
|
59
59
|
else
|
|
60
60
|
puts "\e[31m[ERROR] - alm: File #{File.basename(file_arg)} not found in #{appimg_path}\e[0m"
|
|
61
61
|
end
|
data/lib/alm/version.rb
CHANGED