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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e12ed1206655508810cc1607e3866754898e5a64c84ab85e1e7942357a8f9f3
4
- data.tar.gz: 1cc5c71f2ac9081b75ba48621c21b60544d71057e4b67143bd5dc1d69a934e57
3
+ metadata.gz: da618a0053b490767ea16560cd0e867b071392e45b37b254fac459607ab8a113
4
+ data.tar.gz: 933f59afe74da104af3c1e3c6c88ce72d19fea657a66472113c89240c8b7844e
5
5
  SHA512:
6
- metadata.gz: 54ff19ca6f410c9c72787539ca4cadc1e98ed47957e32d1ac49288052915b962180bb783737401092c0ee4458418cabd29dcdd8496f125456ed2a5bb30d9f429
7
- data.tar.gz: 39818ef03487967415fe4f03cf6174861ee56b6a37bf8fe11e7bed214989f012b965bba50d43e1dace13892cc5c73e1273239333a924b709f91e2638978558fa
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
- - [ ] publish to rubygems
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[1..].map { |pkg| pkg.split[0] }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Koch
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
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.5
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: 2023-05-05 00:00:00.000000000 Z
11
+ date: 2024-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy