getch 0.1.0 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +95 -22
- data/assets/network-stack.conf +63 -0
- data/bin/getch +12 -4
- data/lib/getch.rb +116 -66
- data/lib/getch/command.rb +19 -5
- data/lib/getch/config.rb +42 -0
- data/lib/getch/config/gentoo.rb +59 -0
- data/lib/getch/config/void.rb +49 -0
- data/lib/getch/filesystem.rb +5 -0
- data/lib/getch/filesystem/.mount.rb.swp +0 -0
- data/lib/getch/filesystem/clean.rb +58 -0
- data/lib/getch/filesystem/device.rb +61 -0
- data/lib/getch/filesystem/ext4.rb +1 -0
- data/lib/getch/filesystem/ext4/config.rb +8 -9
- data/lib/getch/filesystem/ext4/device.rb +2 -7
- data/lib/getch/filesystem/ext4/encrypt.rb +1 -0
- data/lib/getch/filesystem/ext4/encrypt/config.rb +8 -9
- data/lib/getch/filesystem/ext4/encrypt/deps.rb +3 -19
- data/lib/getch/filesystem/ext4/encrypt/device.rb +3 -8
- data/lib/getch/filesystem/ext4/encrypt/format.rb +3 -6
- data/lib/getch/filesystem/ext4/encrypt/mount.rb +5 -43
- data/lib/getch/filesystem/ext4/encrypt/partition.rb +29 -54
- data/lib/getch/filesystem/ext4/encrypt/void.rb +100 -0
- data/lib/getch/filesystem/ext4/format.rb +4 -6
- data/lib/getch/filesystem/ext4/mount.rb +7 -46
- data/lib/getch/filesystem/ext4/partition.rb +16 -39
- data/lib/getch/filesystem/ext4/void.rb +43 -0
- data/lib/getch/filesystem/lvm.rb +1 -0
- data/lib/getch/filesystem/lvm/config.rb +11 -15
- data/lib/getch/filesystem/lvm/deps.rb +4 -19
- data/lib/getch/filesystem/lvm/device.rb +33 -9
- data/lib/getch/filesystem/lvm/encrypt.rb +1 -0
- data/lib/getch/filesystem/lvm/encrypt/config.rb +9 -12
- data/lib/getch/filesystem/lvm/encrypt/deps.rb +4 -21
- data/lib/getch/filesystem/lvm/encrypt/device.rb +33 -9
- data/lib/getch/filesystem/lvm/encrypt/format.rb +3 -4
- data/lib/getch/filesystem/lvm/encrypt/mount.rb +7 -47
- data/lib/getch/filesystem/lvm/encrypt/partition.rb +30 -38
- data/lib/getch/filesystem/lvm/encrypt/void.rb +100 -0
- data/lib/getch/filesystem/lvm/format.rb +12 -8
- data/lib/getch/filesystem/lvm/mount.rb +7 -46
- data/lib/getch/filesystem/lvm/partition.rb +19 -31
- data/lib/getch/filesystem/lvm/void.rb +45 -0
- data/lib/getch/filesystem/mount.rb +56 -0
- data/lib/getch/filesystem/partition.rb +77 -0
- data/lib/getch/filesystem/zfs.rb +1 -0
- data/lib/getch/filesystem/zfs/config.rb +7 -8
- data/lib/getch/filesystem/zfs/deps.rb +24 -12
- data/lib/getch/filesystem/zfs/device.rb +54 -9
- data/lib/getch/filesystem/zfs/encrypt.rb +1 -0
- data/lib/getch/filesystem/zfs/encrypt/.mount.rb.swp +0 -0
- data/lib/getch/filesystem/zfs/encrypt/config.rb +11 -11
- data/lib/getch/filesystem/zfs/encrypt/deps.rb +24 -14
- data/lib/getch/filesystem/zfs/encrypt/device.rb +54 -9
- data/lib/getch/filesystem/zfs/encrypt/format.rb +84 -3
- data/lib/getch/filesystem/zfs/encrypt/mount.rb +8 -28
- data/lib/getch/filesystem/zfs/encrypt/partition.rb +26 -109
- data/lib/getch/filesystem/zfs/encrypt/void.rb +96 -0
- data/lib/getch/filesystem/zfs/format.rb +97 -4
- data/lib/getch/filesystem/zfs/mount.rb +10 -32
- data/lib/getch/filesystem/zfs/partition.rb +25 -106
- data/lib/getch/filesystem/zfs/void.rb +81 -0
- data/lib/getch/gentoo.rb +20 -16
- data/lib/getch/gentoo/boot.rb +24 -16
- data/lib/getch/gentoo/chroot.rb +16 -25
- data/lib/getch/gentoo/config.rb +67 -15
- data/lib/getch/gentoo/sources.rb +55 -13
- data/lib/getch/gentoo/stage.rb +0 -1
- data/lib/getch/gentoo/use.rb +43 -0
- data/lib/getch/gentoo/use_flag.rb +63 -0
- data/lib/getch/guard.rb +64 -0
- data/lib/getch/helpers.rb +133 -0
- data/lib/getch/log.rb +3 -2
- data/lib/getch/options.rb +46 -24
- data/lib/getch/version.rb +1 -1
- data/lib/getch/void.rb +59 -0
- data/lib/getch/void/boot.rb +80 -0
- data/lib/getch/void/chroot.rb +55 -0
- data/lib/getch/void/config.rb +87 -0
- data/lib/getch/void/stage.rb +70 -0
- metadata +46 -25
- metadata.gz.sig +0 -0
- data/.gitignore +0 -2
- data/CHANGELOG.md +0 -60
- data/Rakefile +0 -21
- data/bin/setup.sh +0 -90
- data/getch.gemspec +0 -25
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- szorfein
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zem9y
|
14
|
-
|
15
|
-
|
14
|
+
ZmVpbi9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMTA1MTEyMTAzNDZaFw0yMjA1
|
15
|
+
MTEyMTAzNDZaMCgxJjAkBgNVBAMMHXN6b3JmZWluL0RDPXByb3Rvbm1haWwvREM9
|
16
16
|
Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAxCTYZRndCTRy18rE
|
17
17
|
exr2wig/staa0G5kt99xqaBYD0dnIRBr/GO5dFntlBVwmefQlTrNbygVUIYTb8Vg
|
18
18
|
B1oX3v/LLW9SRQcWaZwou0tARqanm5WhgV1ZYQTs22endTazsDHw0uhM3V+FgDh+
|
@@ -25,36 +25,39 @@ cert_chain:
|
|
25
25
|
BgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUc8XWveAjxS5fVEOZeeZe
|
26
26
|
uUQmbhMwIgYDVR0RBBswGYEXc3pvcmZlaW5AcHJvdG9ubWFpbC5jb20wIgYDVR0S
|
27
27
|
BBswGYEXc3pvcmZlaW5AcHJvdG9ubWFpbC5jb20wDQYJKoZIhvcNAQELBQADggGB
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
AHuRqWvtAx1PSIEcvq1uzgBclzP+Lhp6J1f7McvbfzHAZuLo5Nv9iFHkLl2ad9gx
|
29
|
+
p/X2/p8PmgiUNFSXDdB12Pn/VbX4DdoQujwXvmZbQo2KmooklHIhM6AJMafOHW1N
|
30
|
+
qjHIwGvMY5bJfn+3qEQNV+yip6KnCUQVklw132IFvdusoBOPfEP48p41deXbIhNP
|
31
|
+
GNJQ4qkZfXWdLumikb2Y432kIIeugIIAL57VD+wwDUJ3MciiLufYT7v9WNSFRenV
|
32
|
+
JDNGIh3AYiCnNO2DWIArrW6/jaof3A0OnjRQ64vS+EKhZFp8+y6rfC3Clrfjdjse
|
33
|
+
a4zH3TI57bnzfkx5xhjhIu6LJnBpk0x8Y/N2kVmwB+GonFiRcVzZpIfOLvy03tn5
|
34
|
+
dAHfUn//hrBJAT9EXRHNUoLyEmFsCPabTCXjQH6EM2uBcsrjQN4SlgBNzsKc8bS4
|
35
|
+
F9Dl4EPzjBJOgQWf+NxzxNuNKI46Lp5Q8AI+xtDUHAPbSswHa40BA6ChFehP+j0L
|
36
|
+
fg==
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
|
-
description:
|
40
|
+
description:
|
41
41
|
email:
|
42
42
|
- szorfein@protonmail.com
|
43
43
|
executables:
|
44
44
|
- getch
|
45
45
|
extensions: []
|
46
|
-
extra_rdoc_files:
|
46
|
+
extra_rdoc_files:
|
47
|
+
- README.md
|
47
48
|
files:
|
48
|
-
- ".gitignore"
|
49
|
-
- CHANGELOG.md
|
50
49
|
- README.md
|
51
|
-
-
|
50
|
+
- assets/network-stack.conf
|
52
51
|
- bin/getch
|
53
|
-
- bin/setup.sh
|
54
|
-
- getch.gemspec
|
55
52
|
- lib/getch.rb
|
56
53
|
- lib/getch/command.rb
|
54
|
+
- lib/getch/config.rb
|
55
|
+
- lib/getch/config/gentoo.rb
|
56
|
+
- lib/getch/config/void.rb
|
57
57
|
- lib/getch/filesystem.rb
|
58
|
+
- lib/getch/filesystem/.mount.rb.swp
|
59
|
+
- lib/getch/filesystem/clean.rb
|
60
|
+
- lib/getch/filesystem/device.rb
|
58
61
|
- lib/getch/filesystem/ext4.rb
|
59
62
|
- lib/getch/filesystem/ext4/config.rb
|
60
63
|
- lib/getch/filesystem/ext4/deps.rb
|
@@ -66,9 +69,11 @@ files:
|
|
66
69
|
- lib/getch/filesystem/ext4/encrypt/format.rb
|
67
70
|
- lib/getch/filesystem/ext4/encrypt/mount.rb
|
68
71
|
- lib/getch/filesystem/ext4/encrypt/partition.rb
|
72
|
+
- lib/getch/filesystem/ext4/encrypt/void.rb
|
69
73
|
- lib/getch/filesystem/ext4/format.rb
|
70
74
|
- lib/getch/filesystem/ext4/mount.rb
|
71
75
|
- lib/getch/filesystem/ext4/partition.rb
|
76
|
+
- lib/getch/filesystem/ext4/void.rb
|
72
77
|
- lib/getch/filesystem/lvm.rb
|
73
78
|
- lib/getch/filesystem/lvm/config.rb
|
74
79
|
- lib/getch/filesystem/lvm/deps.rb
|
@@ -80,42 +85,58 @@ files:
|
|
80
85
|
- lib/getch/filesystem/lvm/encrypt/format.rb
|
81
86
|
- lib/getch/filesystem/lvm/encrypt/mount.rb
|
82
87
|
- lib/getch/filesystem/lvm/encrypt/partition.rb
|
88
|
+
- lib/getch/filesystem/lvm/encrypt/void.rb
|
83
89
|
- lib/getch/filesystem/lvm/format.rb
|
84
90
|
- lib/getch/filesystem/lvm/mount.rb
|
85
91
|
- lib/getch/filesystem/lvm/partition.rb
|
92
|
+
- lib/getch/filesystem/lvm/void.rb
|
93
|
+
- lib/getch/filesystem/mount.rb
|
94
|
+
- lib/getch/filesystem/partition.rb
|
86
95
|
- lib/getch/filesystem/zfs.rb
|
87
96
|
- lib/getch/filesystem/zfs/config.rb
|
88
97
|
- lib/getch/filesystem/zfs/deps.rb
|
89
98
|
- lib/getch/filesystem/zfs/device.rb
|
90
99
|
- lib/getch/filesystem/zfs/encrypt.rb
|
100
|
+
- lib/getch/filesystem/zfs/encrypt/.mount.rb.swp
|
91
101
|
- lib/getch/filesystem/zfs/encrypt/config.rb
|
92
102
|
- lib/getch/filesystem/zfs/encrypt/deps.rb
|
93
103
|
- lib/getch/filesystem/zfs/encrypt/device.rb
|
94
104
|
- lib/getch/filesystem/zfs/encrypt/format.rb
|
95
105
|
- lib/getch/filesystem/zfs/encrypt/mount.rb
|
96
106
|
- lib/getch/filesystem/zfs/encrypt/partition.rb
|
107
|
+
- lib/getch/filesystem/zfs/encrypt/void.rb
|
97
108
|
- lib/getch/filesystem/zfs/format.rb
|
98
109
|
- lib/getch/filesystem/zfs/mount.rb
|
99
110
|
- lib/getch/filesystem/zfs/partition.rb
|
111
|
+
- lib/getch/filesystem/zfs/void.rb
|
100
112
|
- lib/getch/gentoo.rb
|
101
113
|
- lib/getch/gentoo/boot.rb
|
102
114
|
- lib/getch/gentoo/chroot.rb
|
103
115
|
- lib/getch/gentoo/config.rb
|
104
116
|
- lib/getch/gentoo/sources.rb
|
105
117
|
- lib/getch/gentoo/stage.rb
|
118
|
+
- lib/getch/gentoo/use.rb
|
119
|
+
- lib/getch/gentoo/use_flag.rb
|
120
|
+
- lib/getch/guard.rb
|
106
121
|
- lib/getch/helpers.rb
|
107
122
|
- lib/getch/log.rb
|
108
123
|
- lib/getch/options.rb
|
109
124
|
- lib/getch/states.rb
|
110
125
|
- lib/getch/version.rb
|
126
|
+
- lib/getch/void.rb
|
127
|
+
- lib/getch/void/boot.rb
|
128
|
+
- lib/getch/void/chroot.rb
|
129
|
+
- lib/getch/void/config.rb
|
130
|
+
- lib/getch/void/stage.rb
|
111
131
|
homepage: https://github.com/szorfein/getch
|
112
132
|
licenses:
|
113
133
|
- MIT
|
114
134
|
metadata:
|
135
|
+
source_code_uri: https://github.com/szorfein/getch
|
115
136
|
changelog_uri: https://github.com/szorfein/getch/blob/master/CHANGELOG.md
|
116
137
|
bug_tracker_uri: https://github.com/szorfein/getch/issues
|
117
138
|
wiki_uri: https://github.com/szorfein/getch
|
118
|
-
post_install_message:
|
139
|
+
post_install_message:
|
119
140
|
rdoc_options: []
|
120
141
|
require_paths:
|
121
142
|
- lib
|
@@ -123,15 +144,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
144
|
requirements:
|
124
145
|
- - ">="
|
125
146
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
147
|
+
version: 2.5.0
|
127
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
149
|
requirements:
|
129
150
|
- - ">="
|
130
151
|
- !ruby/object:Gem::Version
|
131
152
|
version: '0'
|
132
153
|
requirements: []
|
133
|
-
rubygems_version: 3.0.
|
134
|
-
signing_key:
|
154
|
+
rubygems_version: 3.0.9
|
155
|
+
signing_key:
|
135
156
|
specification_version: 4
|
136
157
|
summary: A CLI tool to install Gentoo
|
137
158
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gitignore
DELETED
data/CHANGELOG.md
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
## 0.1.0, release 2020-10-15
|
2
|
-
* Add the (Zeta) filesystem ZFS
|
3
|
-
* `emerge --depclean` to save space.
|
4
|
-
* Add a message when getch have finish, keep /mnt/gentoo if you need to add something.
|
5
|
-
* Use systemd-detect-virt to detect a Virtual Guest.
|
6
|
-
|
7
|
-
## 0.0.9, release 2020-10-03
|
8
|
-
* Add encryption on ext4 and lvm (BIOS,UEFI)
|
9
|
-
* Correct KEYMAP="yes" with genkernel
|
10
|
-
* Renaming option keyboard with keymap
|
11
|
-
* GPG verification for ebuild
|
12
|
-
|
13
|
-
## 0.0.8, release 2020-09-30
|
14
|
-
* Adding LVM via the option fs, `--fs lvm`.
|
15
|
-
* Systemd-boot use the value of PARTUUID without initramfs.
|
16
|
-
* Include lib logger.
|
17
|
-
* Enhance functions to call program system Emerge, Make, ...
|
18
|
-
|
19
|
-
## 0.0.7, release 2020-09-22
|
20
|
-
* Correct fstab.
|
21
|
-
* Repair GRUB/fstab for BIOS system, add secure cmdline.
|
22
|
-
* Create a swap volume equal to the memory installed.
|
23
|
-
* Add vim and sudo
|
24
|
-
|
25
|
-
## 0.0.6, release 2020-09-19
|
26
|
-
* Add support for QEMU guest with KVM and Virtio driver
|
27
|
-
* Kernel compilation, initialize a config file with `make localyesconfig`.
|
28
|
-
* More modular codes to start with encryption and other filesystems.
|
29
|
-
* Add the new option --verbose to display output of compilation, etc...
|
30
|
-
|
31
|
-
## 0.0.5, release 2020-09-17
|
32
|
-
* Generate a hostname
|
33
|
-
* Configure systemd-boot for UEFI system
|
34
|
-
|
35
|
-
## 0.0.4, release 2020-09-16
|
36
|
-
* Boot on a BIOS system with VirtualBox
|
37
|
-
* Install Grub
|
38
|
-
* Create user
|
39
|
-
* Create passwd for root and user
|
40
|
-
* Check lsmod to install deps (like wpa_supplicant) and patch the kernel
|
41
|
-
|
42
|
-
## 0.0.3, release 2020-09-14
|
43
|
-
* Add dhcpcd, gentoo-sources, linux-firmware
|
44
|
-
* Kernel build by using https://github.com/szorfein/garden
|
45
|
-
* Populate /etc/portage (/etc/portage/package.{use,unmask,accept_keywords}/zzz_via_autounmask)
|
46
|
-
* Download all the lastest ebuild via emerge-webrsync
|
47
|
-
* Update gentoo via emerge -uDN @world
|
48
|
-
|
49
|
-
## 0.0.2, release 2020-09-12
|
50
|
-
* Getch genere a file /tmp/install_gentoo to avoid to remake same task over and over
|
51
|
-
* Support for ext4
|
52
|
-
* Mount partition on /mnt/gentoo during the install
|
53
|
-
* Download, verify the checksum and decompress the last stage3-amd64-systemd
|
54
|
-
|
55
|
-
## 0.0.1, release 2020-09-10
|
56
|
-
* Partition disk (at least 15G required) with sgdisk (create /boot, /, /home, and swap)
|
57
|
-
* Support for one disk with -d|--disk
|
58
|
-
* Add few options for the CLI
|
59
|
-
* Add bin/setup.sh to install ruby when boot on a ISO file
|
60
|
-
* Init project
|
data/Rakefile
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# https://github.com/seattlerb/minitest#running-your-tests-
|
2
|
-
require "rake/testtask"
|
3
|
-
require File.dirname(__FILE__) + "/lib/getch/version"
|
4
|
-
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs << "test"
|
7
|
-
t.libs << "lib"
|
8
|
-
t.test_files = FileList["test/test_*.rb"]
|
9
|
-
end
|
10
|
-
|
11
|
-
# Usage: rake gem:build
|
12
|
-
namespace :gem do
|
13
|
-
desc "build the gem"
|
14
|
-
task :build do
|
15
|
-
Dir["getch*.gem"].each {|f| File.unlink(f) }
|
16
|
-
system("gem build getch.gemspec")
|
17
|
-
system("gem install getch-#{Getch::VERSION}.gem -P HighSecurity")
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
task :default => :test
|
data/bin/setup.sh
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
#!/usr/bin/env sh
|
2
|
-
|
3
|
-
set -o errexit -o nounset
|
4
|
-
|
5
|
-
DIR=/tmp/getch-master
|
6
|
-
PATH=${PATH}:/tmp/ruby/bin
|
7
|
-
|
8
|
-
# last snapshot https://www.ruby-lang.org/en/downloads/
|
9
|
-
compile_ruby() {
|
10
|
-
PN=ruby
|
11
|
-
PV=2.7
|
12
|
-
[ -f /tmp/$PN_$PV.tar.gz ] || curl -s -L -o /tmp/$PN_$PV.tar.gz https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-$PN_$PV.tar.gz
|
13
|
-
[ -d /tmp/snapshot-$PN_$PV ] || {
|
14
|
-
cd /tmp
|
15
|
-
tar xvf $PN_$PV.tar.gz
|
16
|
-
}
|
17
|
-
cd snapshot-$PN_$PV
|
18
|
-
./configure --prefix=/tmp/$PN
|
19
|
-
make
|
20
|
-
make install
|
21
|
-
}
|
22
|
-
|
23
|
-
search_ruby() {
|
24
|
-
if hash ruby 2>/dev/null ; then
|
25
|
-
echo "Ruby $(ruby -v | awk '{print $2}') found"
|
26
|
-
else
|
27
|
-
echo "Install ruby"
|
28
|
-
if hash pacman 2>/dev/null ; then
|
29
|
-
pacman -Syy --noconfirm libyaml ruby ruby-irb ruby-reline rubygems
|
30
|
-
elif hash emerge 2>/dev/null ; then
|
31
|
-
emerge -av dev-lang/ruby
|
32
|
-
elif hash apt-get 2>/dev/null ; then
|
33
|
-
apt-get install ruby
|
34
|
-
else
|
35
|
-
compile_ruby
|
36
|
-
fi
|
37
|
-
fi
|
38
|
-
}
|
39
|
-
|
40
|
-
install_with_gem() {
|
41
|
-
gem install getch
|
42
|
-
getch -h
|
43
|
-
}
|
44
|
-
|
45
|
-
dll_test_version() {
|
46
|
-
echo "Downloading the test version..."
|
47
|
-
cd /tmp
|
48
|
-
[ -f ./getch.tar.gz ] && rm ./getch.tar.gz
|
49
|
-
[ -d ./getch-master ] && rm -rf ./getch-master
|
50
|
-
|
51
|
-
curl -s -L -o getch.tar.gz https://github.com/szorfein/getch/archive/master.tar.gz
|
52
|
-
tar xzf getch.tar.gz \
|
53
|
-
&& cd $DIR \
|
54
|
-
&& ruby -I lib bin/getch -h
|
55
|
-
}
|
56
|
-
|
57
|
-
get_getch() {
|
58
|
-
if hash gem 2>/dev/null ; then
|
59
|
-
printf "Which version? [1] stable , [2] test (no recommended) " ; read -r
|
60
|
-
if echo "$REPLY" | grep -qP "2" ; then
|
61
|
-
dll_test_version
|
62
|
-
else
|
63
|
-
install_with_gem
|
64
|
-
fi
|
65
|
-
else
|
66
|
-
dll_test_version
|
67
|
-
fi
|
68
|
-
}
|
69
|
-
|
70
|
-
set_shell() {
|
71
|
-
your_shell=~/.bashrc
|
72
|
-
[ -f ~/.zshrc ] && your_shell=~/.zshrc
|
73
|
-
|
74
|
-
[ -f "$your_shell" ] && {
|
75
|
-
if ! grep -q "ruby" "$your_shell" ; then
|
76
|
-
echo "export PATH=\$PATH:$(ruby -e 'puts Gem.user_dir')/bin" >> "$your_shell"
|
77
|
-
fi
|
78
|
-
if $(. "$your_shell") ; then
|
79
|
-
echo "Shell loaded"
|
80
|
-
fi
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
main() {
|
85
|
-
search_ruby
|
86
|
-
set_shell
|
87
|
-
get_getch
|
88
|
-
}
|
89
|
-
|
90
|
-
main "$@"
|
data/getch.gemspec
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + "/lib/getch/version"
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "getch"
|
5
|
-
s.version = Getch::VERSION
|
6
|
-
s.summary = "A CLI tool to install Gentoo"
|
7
|
-
s.authors = ["szorfein"]
|
8
|
-
s.email = ["szorfein@protonmail.com"]
|
9
|
-
s.homepage = 'https://github.com/szorfein/getch'
|
10
|
-
s.metadata = {
|
11
|
-
"changelog_uri" => "https://github.com/szorfein/getch/blob/master/CHANGELOG.md",
|
12
|
-
"bug_tracker_uri" => "https://github.com/szorfein/getch/issues",
|
13
|
-
"wiki_uri" => "https://github.com/szorfein/getch"
|
14
|
-
}
|
15
|
-
s.license = "MIT"
|
16
|
-
s.required_ruby_version = '>=2.5'
|
17
|
-
|
18
|
-
s.files = `git ls-files`.split(" ")
|
19
|
-
s.files.reject! { |fn| fn.include? "certs" }
|
20
|
-
|
21
|
-
s.executables = [ 'getch' ]
|
22
|
-
|
23
|
-
s.cert_chain = ['certs/szorfein.pem']
|
24
|
-
s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
|
25
|
-
end
|