getch 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 880096b36b35951139edcd47f4e5668543030fe47b12eeb7057b7b968277dae4
4
- data.tar.gz: 589f41662372b0539468498154ae9c62652dda8e3ef98acdf9f3846ed4a24b74
3
+ metadata.gz: 6a15cef9d7c838de8e60bb93e4ee6bbe3e0b473c7eb5a8b0e0e003cb7d4edc2d
4
+ data.tar.gz: ebe82964c26b1b75ea7b0b446fb593b36aa5d1ffa8382138853b4ba52e06c7a3
5
5
  SHA512:
6
- metadata.gz: 0dc24a2f84c83cabe29307bd22d039ee409f77ceb02ed72f486b8499b91ebd6e534a163b315e6b9c5c0f3b27f259240fa1108a1a5b7b3faaba435632f1274731
7
- data.tar.gz: 74569f9b52ff8cec49df4a9f77c70a2cc90b1b3c2a7a8f11dbc411ebdd8ff1ee927a5a0cb35b247e49ac7cd39ec8c0e3d57b78fc7dc22b97108fc326a146e71a
6
+ metadata.gz: cad28b0d1459f912f6c587ee2d42c384b1a720e82f6cb96079fc16396d2a4522e0ca5f2099c75e52dbd4159837481b82828df6ff98bca56b9ee8e3fa3a51aa84
7
+ data.tar.gz: 0eefb3ddfee3658e882a75ac18caef7d25f86442a32511e74ab1167aac6f631b507839d024087f7488615f2f5272bc6fba0adb06562ed3ac8633af4822a42cec
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.5, release 2022-11-21
2
+ * Tested on a live Ubuntu 22.10.
3
+ * Ensure `dracut.conf.d` exist before writing to it.
4
+ * Display the version with `-v`, `--version`.
5
+
1
6
  ## 0.3.4, release 2022-10-10
2
7
  * Can work on a Live image of Voidlinux
3
8
 
data/README.md CHANGED
@@ -41,6 +41,7 @@ Boot Manager:
41
41
  The ISO images i was able to test and that works:
42
42
  + [Archlinux](https://www.archlinux.org/download/)
43
43
  + [Portia](https://github.com/szorfein/portia/releases): Custom Archiso that includes ZFS support and Ruby.
44
+ * [Ubuntu 22.10](https://cdimage.ubuntu.com/releases/22.10/release/)
44
45
  * [Voidlinux](https://voidlinux.org/download/)
45
46
 
46
47
  You can also use your current `linux` host, just pay attention to the disk that will be used.
data/lib/dracut/root.rb CHANGED
@@ -24,6 +24,7 @@ module Dracut
24
24
  protected
25
25
 
26
26
  def host_only
27
+ mkdir "#{@mountpoint}/etc/dracut.conf.d"
27
28
  file = "#{@mountpoint}/etc/dracut.conf.d/host.conf"
28
29
  echo file, 'hostonly="yes"'
29
30
  echo_a file, 'use_fstab="yes"'
data/lib/getch/options.rb CHANGED
@@ -84,6 +84,11 @@ module Getch
84
84
  OPTIONS[:verbose] = true
85
85
  end
86
86
 
87
+ opts.on('-v', '--version', 'Display the version.') do
88
+ puts "Getch v#{VERSION}"
89
+ exit
90
+ end
91
+
87
92
  opts.on('-h', '--help', 'Display this') do
88
93
  puts opts
89
94
  exit
data/lib/getch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Getch
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '0.3.5'.freeze
3
3
  end
data/lib/nito.rb CHANGED
@@ -55,12 +55,12 @@ module NiTo
55
55
 
56
56
  # Like echo 'content' > to_file
57
57
  def echo(file, content)
58
- File.write file, "#{content}\n", mode: 'w'
58
+ File.write(file, "#{content}\n")
59
59
  end
60
60
 
61
61
  # Like echo 'content' >> to_file
62
62
  def echo_a(file, content)
63
- File.write file, "#{content}\n", mode: 'a' unless grep? file, content
63
+ File.write(file, "#{content}\n", mode: 'a') unless grep? file, content
64
64
  end
65
65
 
66
66
  def cp(src, dest)
@@ -69,7 +69,7 @@ module NiTo
69
69
 
70
70
  # create a void file
71
71
  def touch(file)
72
- File.write file, '' unless File.exist? file
72
+ File.write(file, '') unless File.exist? file
73
73
  end
74
74
 
75
75
  # Like sed -i /old:new/ file
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
@@ -36,7 +36,7 @@ cert_chain:
36
36
  aEJeKq4/BlIwMlXPe+W5C8zp2i8hgG1/OYbwbGE1p2iRi1NIK7G/HyRqQjOqJxzE
37
37
  LLknX69FN7/G
38
38
  -----END CERTIFICATE-----
39
- date: 2022-10-10 00:00:00.000000000 Z
39
+ date: 2022-11-23 00:00:00.000000000 Z
40
40
  dependencies: []
41
41
  description:
42
42
  email:
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubygems_version: 3.3.21
194
+ rubygems_version: 3.3.23
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: A CLI tool to install Gentoo or VoidLinux.
metadata.gz.sig CHANGED
Binary file