koch 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/koch/install_snap_package.rb +1 -1
- data/lib/koch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da618a0053b490767ea16560cd0e867b071392e45b37b254fac459607ab8a113
|
4
|
+
data.tar.gz: 933f59afe74da104af3c1e3c6c88ce72d19fea657a66472113c89240c8b7844e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7940e1ac35db54f8b060a240e90c976075bcb5666ec374f40f24f4f40fae5e9a37f0ed349727c1d00e1ba881426e162b3c7e60ab06d25704929ee72f213e4d95
|
7
|
+
data.tar.gz: b8b4eaf977c42d97a515afc7986e8b4c9191027cf45b57b1c06ceb1e04010ebf44ce91b5063ff338ca1d690c98bfaa83c6006d96dfc688de57ec7427254d606a
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ a bunch of convenience functions. Feel free to use all the Ruby you want.
|
|
31
31
|
## Usage
|
32
32
|
|
33
33
|
```
|
34
|
-
sudo apt -y install git
|
34
|
+
sudo apt -y install build-essential git ruby-dev zlib1g-dev
|
35
35
|
sudo gem install koch
|
36
36
|
git clone git@github.com:example/machine.git
|
37
37
|
cd machine
|
@@ -41,10 +41,20 @@ sudo koch
|
|
41
41
|
## Supported platforms
|
42
42
|
|
43
43
|
- Ubuntu 22.04 (amd64)
|
44
|
+
- Ubuntu 24.04 (amd64)
|
44
45
|
- Debian 11 (amd64)
|
45
|
-
- End of list
|
46
46
|
|
47
47
|
## TODO
|
48
48
|
|
49
49
|
- [ ] Interactive mode, ask about each change
|
50
|
-
- [ ]
|
50
|
+
- [ ] Implement firewall support
|
51
|
+
firewall do
|
52
|
+
open :ssh
|
53
|
+
open :nginx_full
|
54
|
+
deny 22
|
55
|
+
allow do
|
56
|
+
source '192.168.0.0/16'
|
57
|
+
interface :eth0
|
58
|
+
end
|
59
|
+
end
|
60
|
+
- [ ] Implement file links
|
@@ -26,7 +26,7 @@ module Koch
|
|
26
26
|
def installed_packages
|
27
27
|
return @installed_packages if @installed_packages
|
28
28
|
|
29
|
-
@installed_packages = `snap list`.lines
|
29
|
+
@installed_packages = `snap list`.lines.drop(1).map { |pkg| pkg.split[0] }
|
30
30
|
debug "Installed snap packages: "
|
31
31
|
debug @installed_packages.join(" ")
|
32
32
|
@installed_packages
|
data/lib/koch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koch
|
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
|
- Marius Nuennerich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|