hetzner-k3s 0.6.0.rc1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -13
- data/Gemfile.lock +19 -2
- data/README.md +29 -1
- data/hetzner-k3s.gemspec +6 -4
- data/lib/hetzner/k3s/version.rb +1 -1
- data/spec/k3s_spec.rb +11 -0
- data/spec/spec_helper.rb +16 -0
- metadata +22 -30
- data/.github/workflows/release.yml +0 -32
- data/.gitignore +0 -15
- data/.rspec +0 -3
- data/.rubocop.yml +0 -135
- data/.ruby-version +0 -1
- data/.travis.yml +0 -6
- data/bin/build.sh +0 -18
- data/bin/console.sh +0 -14
- data/bin/setup.sh +0 -8
- data/config/warble.rb +0 -182
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 763805e4627b03dd56a2686abe7bc16365f07c27a8f9f1a209f89830ba6c4809
|
4
|
+
data.tar.gz: ce9541a715ea2934532a4d9b9aeabd8754d4607fcafcfdadd2c709b387073585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f607f968e4396a0ac166741e031e21c8190c1a8fea04ebe92f6a74f8ddc61a77e7f8eddac3b5a5c909c81b660617a79ca05dc84946b9d4cb88dd7fffbe6bb81e
|
7
|
+
data.tar.gz: 926544cff31838ce3419c10165a512bfce52c284cc7394600bf55be34876fd8505abab33d0b97014730e86d4c95a237f32eff17c9c339cd91f985518df68c0e7
|
data/Gemfile
CHANGED
@@ -5,16 +5,5 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in k3s.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
# gem 'rspec', '~> 3.0'
|
11
|
-
|
12
|
-
# gem 'childprocess'
|
13
|
-
# gem 'ed25519'
|
14
|
-
# gem 'http'
|
15
|
-
# gem 'jruby-openssl'
|
16
|
-
# gem 'net-ssh'
|
17
|
-
# gem 'sshkey'
|
18
|
-
# gem 'thor'
|
19
|
-
# gem 'http-parser'
|
20
|
-
# end
|
8
|
+
gem 'rake', '~> 12.0'
|
9
|
+
gem 'rspec', '~> 3.0'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hetzner-k3s (0.
|
4
|
+
hetzner-k3s (0.6.0.pre14)
|
5
5
|
bcrypt_pbkdf
|
6
6
|
childprocess
|
7
7
|
ed25519
|
@@ -16,6 +16,7 @@ GEM
|
|
16
16
|
ast (2.4.2)
|
17
17
|
bcrypt_pbkdf (1.1.0)
|
18
18
|
childprocess (4.1.0)
|
19
|
+
diff-lcs (1.5.0)
|
19
20
|
ed25519 (1.3.0)
|
20
21
|
httparty (0.20.0)
|
21
22
|
mime-types (~> 3.0)
|
@@ -24,13 +25,27 @@ GEM
|
|
24
25
|
mime-types-data (~> 3.2015)
|
25
26
|
mime-types-data (3.2022.0105)
|
26
27
|
multi_xml (0.6.0)
|
27
|
-
net-ssh (
|
28
|
+
net-ssh (7.0.1)
|
28
29
|
parallel (1.20.1)
|
29
30
|
parser (3.1.2.1)
|
30
31
|
ast (~> 2.4.1)
|
31
32
|
rainbow (3.1.1)
|
33
|
+
rake (12.3.3)
|
32
34
|
regexp_parser (2.5.0)
|
33
35
|
rexml (3.2.5)
|
36
|
+
rspec (3.11.0)
|
37
|
+
rspec-core (~> 3.11.0)
|
38
|
+
rspec-expectations (~> 3.11.0)
|
39
|
+
rspec-mocks (~> 3.11.0)
|
40
|
+
rspec-core (3.11.0)
|
41
|
+
rspec-support (~> 3.11.0)
|
42
|
+
rspec-expectations (3.11.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.11.0)
|
45
|
+
rspec-mocks (3.11.1)
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
+
rspec-support (~> 3.11.0)
|
48
|
+
rspec-support (3.11.0)
|
34
49
|
rubocop (1.12.1)
|
35
50
|
parallel (~> 1.10)
|
36
51
|
parser (>= 3.0.0.0)
|
@@ -53,6 +68,8 @@ PLATFORMS
|
|
53
68
|
|
54
69
|
DEPENDENCIES
|
55
70
|
hetzner-k3s!
|
71
|
+
rake (~> 12.0)
|
72
|
+
rspec (~> 3.0)
|
56
73
|
rubocop
|
57
74
|
|
58
75
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -28,7 +28,35 @@ All that is needed to use this tool is
|
|
28
28
|
|
29
29
|
## Installation
|
30
30
|
|
31
|
-
|
31
|
+
### macOS (Intel)
|
32
|
+
|
33
|
+
```bash
|
34
|
+
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v0.6.0/hetzner-k3s-mac-x64
|
35
|
+
chmod +x hetzner-k3s-mac-x64
|
36
|
+
sudo mv hetzner-k3s-mac-x64 /usr/local/bin/hetzner-k3s
|
37
|
+
```
|
38
|
+
|
39
|
+
### macOS (Apple Silicon/M1/ARM)
|
40
|
+
|
41
|
+
```bash
|
42
|
+
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v0.6.0/hetzner-k3s-mac-arm
|
43
|
+
chmod +x hetzner-k3s-mac-arm
|
44
|
+
sudo mv hetzner-k3s-mac-arm /usr/local/bin/hetzner-k3s
|
45
|
+
```
|
46
|
+
|
47
|
+
NOTE: currently the ARM version still requires [Rosetta](https://support.apple.com/en-us/HT211861) to function because it's not really an ARM-compiled version yet. It's a different build specifically for ARM Macs because of some differences in openssl between ARM and Intel Macs. A proper ARM version will be available in the future.
|
48
|
+
|
49
|
+
### Linux
|
50
|
+
|
51
|
+
```bash
|
52
|
+
wget https://github.com/vitobotta/hetzner-k3s/releases/download/v0.6.0/hetzner-k3s-linux-x64
|
53
|
+
chmod +x hetzner-k3s-linux-x64
|
54
|
+
sudo mv hetzner-k3s-linux-x64 /usr/local/bin/hetzner-k3s
|
55
|
+
```
|
56
|
+
|
57
|
+
### As Ruby gem executable
|
58
|
+
|
59
|
+
Once you have the Ruby runtime up and running (2.7.1 required), you just need to install the gem:
|
32
60
|
|
33
61
|
```bash
|
34
62
|
gem install hetzner-k3s
|
data/hetzner-k3s.gemspec
CHANGED
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.metadata['source_code_uri'] = 'https://github.com/vitobotta/hetzner-k3s'
|
21
21
|
spec.metadata['changelog_uri'] = 'https://github.com/vitobotta/hetzner-k3s'
|
22
22
|
|
23
|
+
spec.add_dependency 'bcrypt_pbkdf'
|
23
24
|
spec.add_dependency 'childprocess'
|
24
25
|
spec.add_dependency 'ed25519'
|
25
26
|
spec.add_dependency 'httparty'
|
26
|
-
spec.add_dependency 'bcrypt_pbkdf'
|
27
27
|
spec.add_dependency 'net-ssh'
|
28
28
|
spec.add_dependency 'sshkey'
|
29
29
|
spec.add_dependency 'thor'
|
@@ -31,9 +31,11 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
# Specify which files should be added to the gem when it is released.
|
33
33
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
34
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
35
|
-
|
36
|
-
end
|
34
|
+
# spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
35
|
+
# `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
36
|
+
# end
|
37
|
+
|
38
|
+
spec.files = Dir['lib/**/*.rb'] + Dir['exe/*'] + Dir['[A-Z]*'] + Dir['spec/**/*']
|
37
39
|
spec.bindir = 'exe'
|
38
40
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
39
41
|
spec.require_paths = ['lib']
|
data/lib/hetzner/k3s/version.rb
CHANGED
data/spec/k3s_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'k3s'
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
# Enable flags like --only-failures and --next-failure
|
8
|
+
config.example_status_persistence_file_path = '.rspec_status'
|
9
|
+
|
10
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
11
|
+
config.disable_monkey_patching!
|
12
|
+
|
13
|
+
config.expect_with :rspec do |c|
|
14
|
+
c.syntax = :expect
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hetzner-k3s
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vito Botta
|
@@ -11,112 +11,112 @@ cert_chain: []
|
|
11
11
|
date: 2022-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: bcrypt_pbkdf
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '0'
|
19
|
-
name: childprocess
|
20
|
-
prerelease: false
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: childprocess
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
|
-
name: ed25519
|
34
|
-
prerelease: false
|
35
34
|
type: :runtime
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: ed25519
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
|
-
name: httparty
|
48
|
-
prerelease: false
|
49
48
|
type: :runtime
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: httparty
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
name: bcrypt_pbkdf
|
62
|
-
prerelease: false
|
63
62
|
type: :runtime
|
63
|
+
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: net-ssh
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
73
|
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
|
-
name: net-ssh
|
76
|
-
prerelease: false
|
77
76
|
type: :runtime
|
77
|
+
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: sshkey
|
84
85
|
requirement: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
87
|
- - ">="
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '0'
|
89
|
-
name: sshkey
|
90
|
-
prerelease: false
|
91
90
|
type: :runtime
|
91
|
+
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: thor
|
98
99
|
requirement: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
101
|
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '0'
|
103
|
-
name: thor
|
104
|
-
prerelease: false
|
105
104
|
type: :runtime
|
105
|
+
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
114
|
requirements:
|
114
115
|
- - ">="
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
|
-
name: rubocop
|
118
|
-
prerelease: false
|
119
118
|
type: :development
|
119
|
+
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
@@ -131,12 +131,6 @@ executables:
|
|
131
131
|
extensions: []
|
132
132
|
extra_rdoc_files: []
|
133
133
|
files:
|
134
|
-
- ".github/workflows/release.yml"
|
135
|
-
- ".gitignore"
|
136
|
-
- ".rspec"
|
137
|
-
- ".rubocop.yml"
|
138
|
-
- ".ruby-version"
|
139
|
-
- ".travis.yml"
|
140
134
|
- CODE_OF_CONDUCT.md
|
141
135
|
- Dockerfile
|
142
136
|
- Gemfile
|
@@ -144,11 +138,7 @@ files:
|
|
144
138
|
- LICENSE.txt
|
145
139
|
- README.md
|
146
140
|
- Rakefile
|
147
|
-
- bin/build.sh
|
148
|
-
- bin/console.sh
|
149
|
-
- bin/setup.sh
|
150
141
|
- cluster_config.yaml.example
|
151
|
-
- config/warble.rb
|
152
142
|
- entrypoint.sh
|
153
143
|
- exe/hetzner-k3s
|
154
144
|
- hetzner-k3s.gemspec
|
@@ -166,6 +156,8 @@ files:
|
|
166
156
|
- lib/hetzner/k3s/configuration.rb
|
167
157
|
- lib/hetzner/k3s/version.rb
|
168
158
|
- lib/hetzner/utils.rb
|
159
|
+
- spec/k3s_spec.rb
|
160
|
+
- spec/spec_helper.rb
|
169
161
|
homepage: https://github.com/vitobotta/hetzner-k3s
|
170
162
|
licenses:
|
171
163
|
- MIT
|
@@ -185,11 +177,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
177
|
version: 2.7.1
|
186
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
179
|
requirements:
|
188
|
-
- - "
|
180
|
+
- - ">="
|
189
181
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
182
|
+
version: '0'
|
191
183
|
requirements: []
|
192
|
-
rubygems_version: 3.2
|
184
|
+
rubygems_version: 3.1.2
|
193
185
|
signing_key:
|
194
186
|
specification_version: 4
|
195
187
|
summary: A CLI to create a Kubernetes cluster in Hetzner Cloud very quickly using
|
@@ -1,32 +0,0 @@
|
|
1
|
-
name: Release
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
tags:
|
6
|
-
- '*'
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
mcos:
|
10
|
-
runs-on: macos-12
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@v3
|
13
|
-
|
14
|
-
- uses: ruby/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: '2.7.1'
|
17
|
-
|
18
|
-
- name: Get ruby-packer
|
19
|
-
run: |
|
20
|
-
curl -o rubyc-macos https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
|
21
|
-
chmod +x rubyc-macos
|
22
|
-
|
23
|
-
- name: Build for macOS
|
24
|
-
run: |
|
25
|
-
env CC="xcrun clang -mmacosx-version-min=10.10 -Wno-implicit-function-declaration" time ./rubyc-macos -r ./ -o ./hetzner-k3s-macos exe/hetzner-k3s
|
26
|
-
chmod +x hetzner-k3s-macos
|
27
|
-
|
28
|
-
- uses: ncipollo/release-action@v1
|
29
|
-
with:
|
30
|
-
tag: v$(ruby -r ./lib/hetzner/k3s/version -e 'puts Hetzner::K3s::VERSION')
|
31
|
-
artifacts: "hetzner-k3s-macos"
|
32
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
Gemspec/DeprecatedAttributeAssignment: # new in 1.10
|
2
|
-
Enabled: true
|
3
|
-
Gemspec/RequireMFA: # new in 1.23
|
4
|
-
Enabled: true
|
5
|
-
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
6
|
-
Enabled: true
|
7
|
-
Layout/SpaceBeforeBrackets: # new in 1.7
|
8
|
-
Enabled: true
|
9
|
-
Lint/AmbiguousAssignment: # new in 1.7
|
10
|
-
Enabled: true
|
11
|
-
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
12
|
-
Enabled: true
|
13
|
-
Lint/AmbiguousRange: # new in 1.19
|
14
|
-
Enabled: true
|
15
|
-
Lint/DeprecatedConstants: # new in 1.8
|
16
|
-
Enabled: true
|
17
|
-
Lint/DuplicateBranch: # new in 1.3
|
18
|
-
Enabled: true
|
19
|
-
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
20
|
-
Enabled: true
|
21
|
-
Lint/EmptyBlock: # new in 1.1
|
22
|
-
Enabled: true
|
23
|
-
Lint/EmptyClass: # new in 1.3
|
24
|
-
Enabled: true
|
25
|
-
Lint/EmptyInPattern: # new in 1.16
|
26
|
-
Enabled: true
|
27
|
-
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
28
|
-
Enabled: true
|
29
|
-
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
30
|
-
Enabled: true
|
31
|
-
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
32
|
-
Enabled: true
|
33
|
-
Lint/NumberedParameterAssignment: # new in 1.9
|
34
|
-
Enabled: true
|
35
|
-
Lint/OrAssignmentToConstant: # new in 1.9
|
36
|
-
Enabled: true
|
37
|
-
Lint/RedundantDirGlobSort: # new in 1.8
|
38
|
-
Enabled: true
|
39
|
-
Lint/RequireRelativeSelfPath: # new in 1.22
|
40
|
-
Enabled: true
|
41
|
-
Lint/SymbolConversion: # new in 1.9
|
42
|
-
Enabled: true
|
43
|
-
Lint/ToEnumArguments: # new in 1.1
|
44
|
-
Enabled: true
|
45
|
-
Lint/TripleQuotes: # new in 1.9
|
46
|
-
Enabled: true
|
47
|
-
Lint/UnexpectedBlockArity: # new in 1.5
|
48
|
-
Enabled: true
|
49
|
-
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
50
|
-
Enabled: true
|
51
|
-
Lint/UselessRuby2Keywords: # new in 1.23
|
52
|
-
Enabled: true
|
53
|
-
Naming/BlockForwarding: # new in 1.24
|
54
|
-
Enabled: true
|
55
|
-
Security/IoMethods: # new in 1.22
|
56
|
-
Enabled: true
|
57
|
-
Style/ArgumentsForwarding: # new in 1.1
|
58
|
-
Enabled: true
|
59
|
-
Style/CollectionCompact: # new in 1.2
|
60
|
-
Enabled: true
|
61
|
-
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
62
|
-
Enabled: true
|
63
|
-
Style/EndlessMethod: # new in 1.8
|
64
|
-
Enabled: true
|
65
|
-
Style/FileRead: # new in 1.24
|
66
|
-
Enabled: true
|
67
|
-
Style/FileWrite: # new in 1.24
|
68
|
-
Enabled: true
|
69
|
-
Style/HashConversion: # new in 1.10
|
70
|
-
Enabled: true
|
71
|
-
Style/HashExcept: # new in 1.7
|
72
|
-
Enabled: true
|
73
|
-
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
74
|
-
Enabled: true
|
75
|
-
Style/InPatternThen: # new in 1.16
|
76
|
-
Enabled: true
|
77
|
-
Style/MapToHash: # new in 1.24
|
78
|
-
Enabled: true
|
79
|
-
Style/MultilineInPatternThen: # new in 1.16
|
80
|
-
Enabled: true
|
81
|
-
Style/NegatedIfElseCondition: # new in 1.2
|
82
|
-
Enabled: true
|
83
|
-
Style/NilLambda: # new in 1.3
|
84
|
-
Enabled: true
|
85
|
-
Style/NumberedParameters: # new in 1.22
|
86
|
-
Enabled: true
|
87
|
-
Style/NumberedParametersLimit: # new in 1.22
|
88
|
-
Enabled: true
|
89
|
-
Style/OpenStructUse: # new in 1.23
|
90
|
-
Enabled: true
|
91
|
-
Style/QuotedSymbols: # new in 1.16
|
92
|
-
Enabled: true
|
93
|
-
Style/RedundantArgument: # new in 1.4
|
94
|
-
Enabled: true
|
95
|
-
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
96
|
-
Enabled: true
|
97
|
-
Style/SelectByRegexp: # new in 1.22
|
98
|
-
Enabled: true
|
99
|
-
Style/StringChars: # new in 1.12
|
100
|
-
Enabled: true
|
101
|
-
Style/SwapValues: # new in 1.1
|
102
|
-
Enabled: true
|
103
|
-
Style/Documentation:
|
104
|
-
Enabled: false
|
105
|
-
Metrics/MethodLength:
|
106
|
-
Enabled: false
|
107
|
-
Metrics/AbcSize:
|
108
|
-
Enabled: false
|
109
|
-
Metrics/CyclomaticComplexity:
|
110
|
-
Enabled: false
|
111
|
-
Metrics/ClassLength:
|
112
|
-
Enabled: false
|
113
|
-
Layout/LineLength:
|
114
|
-
Enabled: false
|
115
|
-
Metrics/PerceivedComplexity:
|
116
|
-
Enabled: false
|
117
|
-
Metrics/ParameterLists:
|
118
|
-
Max: 10
|
119
|
-
Style/FrozenStringLiteralComment:
|
120
|
-
Exclude:
|
121
|
-
- exe/hetzner-k3s
|
122
|
-
Lint/RefinementImportMethods: # new in 1.27
|
123
|
-
Enabled: true
|
124
|
-
Security/CompoundHash: # new in 1.28
|
125
|
-
Enabled: true
|
126
|
-
Style/EnvHome: # new in 1.29
|
127
|
-
Enabled: true
|
128
|
-
Style/FetchEnvVar: # new in 1.28
|
129
|
-
Enabled: true
|
130
|
-
Style/NestedFileDirname: # new in 1.26
|
131
|
-
Enabled: true
|
132
|
-
Style/ObjectThen: # new in 1.28
|
133
|
-
Enabled: true
|
134
|
-
Style/RedundantInitialize: # new in 1.27
|
135
|
-
Enabled: true
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.7.1
|
data/.travis.yml
DELETED
data/bin/build.sh
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
# IMAGE="vitobotta/hetzner-k3s"
|
6
|
-
|
7
|
-
# docker build -t ${IMAGE}:v0.5.9 \
|
8
|
-
# --platform=linux/amd64 \
|
9
|
-
# --cache-from ${IMAGE}:v0.5.8 \
|
10
|
-
# --build-arg BUILDKIT_INLINE_CACHE=1 .
|
11
|
-
|
12
|
-
# docker push vitobotta/hetzner-k3s:v0.5.9
|
13
|
-
|
14
|
-
warble
|
15
|
-
|
16
|
-
echo "#!/usr/bin/env java -jar" > dist/hetzner-k3s
|
17
|
-
cat dist/hetzner-k3s.jar >> dist/hetzner-k3s
|
18
|
-
chmod +x dist/hetzner-k3s
|
data/bin/console.sh
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'k3s'
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup.sh
DELETED
data/config/warble.rb
DELETED
@@ -1,182 +0,0 @@
|
|
1
|
-
# Disable Rake-environment-task framework detection by uncommenting/setting to false
|
2
|
-
# Warbler.framework_detection = false
|
3
|
-
|
4
|
-
# Warbler web application assembly configuration file
|
5
|
-
Warbler::Config.new do |config|
|
6
|
-
# Features: additional options controlling how the jar is built.
|
7
|
-
# Currently the following features are supported:
|
8
|
-
# - *gemjar*: package the gem repository in a jar file in WEB-INF/lib
|
9
|
-
# - *executable*: embed a web server and make the war executable
|
10
|
-
# - *runnable*: allows to run bin scripts e.g. `java -jar my.war -S rake -T`
|
11
|
-
# - *compiled*: compile .rb files to .class files
|
12
|
-
config.features = %w(executable runnable compiled)
|
13
|
-
|
14
|
-
# Application directories to be included in the webapp.
|
15
|
-
config.dirs = %w(bin config exe lib)
|
16
|
-
|
17
|
-
# Additional files/directories to include, above those in config.dirs
|
18
|
-
# config.includes = FileList["db"]
|
19
|
-
|
20
|
-
# Additional files/directories to exclude
|
21
|
-
# config.excludes = FileList["lib/tasks/*"]
|
22
|
-
|
23
|
-
# Additional Java .jar files to include. Note that if .jar files are placed
|
24
|
-
# in lib (and not otherwise excluded) then they need not be mentioned here.
|
25
|
-
# JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
|
26
|
-
# own versions if you directly set the value
|
27
|
-
# config.java_libs += FileList["lib/java/*.jar"]
|
28
|
-
|
29
|
-
# Loose Java classes and miscellaneous files to be included.
|
30
|
-
# config.java_classes = FileList["target/classes/**.*"]
|
31
|
-
|
32
|
-
# One or more pathmaps defining how the java classes should be copied into
|
33
|
-
# the archive. The example pathmap below accompanies the java_classes
|
34
|
-
# configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
|
35
|
-
# for details of how to specify a pathmap.
|
36
|
-
# config.pathmaps.java_classes << "%{target/classes/,}p"
|
37
|
-
|
38
|
-
# Bundler support is built-in. If Warbler finds a Gemfile in the
|
39
|
-
# project directory, it will be used to collect the gems to bundle
|
40
|
-
# in your application. If you wish to explicitly disable this
|
41
|
-
# functionality, uncomment here.
|
42
|
-
config.bundler = true
|
43
|
-
|
44
|
-
# An array of Bundler groups to avoid including in the war file.
|
45
|
-
# Defaults to ["development", "test", "assets"].
|
46
|
-
# config.bundle_without = []
|
47
|
-
|
48
|
-
# Other gems to be included. If you don't use Bundler or a gemspec
|
49
|
-
# file, you need to tell Warbler which gems your application needs
|
50
|
-
# so that they can be packaged in the archive.
|
51
|
-
# For Rails applications, the Rails gems are included by default
|
52
|
-
# unless the vendor/rails directory is present.
|
53
|
-
# config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
|
54
|
-
# config.gems << "tzinfo"
|
55
|
-
|
56
|
-
# Uncomment this if you don't want to package rails gem.
|
57
|
-
# config.gems -= ["rails"]
|
58
|
-
|
59
|
-
# The most recent versions of gems are used.
|
60
|
-
# You can specify versions of gems by using a hash assignment:
|
61
|
-
# config.gems["rails"] = "4.2.5"
|
62
|
-
|
63
|
-
# You can also use regexps or Gem::Dependency objects for flexibility or
|
64
|
-
# finer-grained control.
|
65
|
-
# config.gems << /^sinatra-/
|
66
|
-
# config.gems << Gem::Dependency.new("sinatra", "= 1.4.7")
|
67
|
-
|
68
|
-
# Include gem dependencies not mentioned specifically. Default is
|
69
|
-
# true, uncomment to turn off.
|
70
|
-
# config.gem_dependencies = false
|
71
|
-
|
72
|
-
# Array of regular expressions matching relative paths in gems to be
|
73
|
-
# excluded from the war. Defaults to empty, but you can set it like
|
74
|
-
# below, which excludes test files.
|
75
|
-
# config.gem_excludes = [/^(test|spec)\//]
|
76
|
-
|
77
|
-
# Pathmaps for controlling how application files are copied into the archive
|
78
|
-
# config.pathmaps.application = ["WEB-INF/%p"]
|
79
|
-
|
80
|
-
# Name of the archive (without the extension). Defaults to the basename
|
81
|
-
# of the project directory.
|
82
|
-
config.jar_name = "hetzner-k3s"
|
83
|
-
|
84
|
-
# File extension for the archive. Defaults to either 'jar' or 'war'.
|
85
|
-
config.jar_extension = "jar"
|
86
|
-
|
87
|
-
# Destionation for the created archive. Defaults to project's root directory.
|
88
|
-
config.autodeploy_dir = "dist/"
|
89
|
-
|
90
|
-
# Name of the MANIFEST.MF template for the war file. Defaults to a simple
|
91
|
-
# MANIFEST.MF that contains the version of Warbler used to create the war file.
|
92
|
-
# config.manifest_file = "config/MANIFEST.MF"
|
93
|
-
|
94
|
-
# When using the 'compiled' feature and specified, only these Ruby
|
95
|
-
# files will be compiled. Default is to compile all \.rb files in
|
96
|
-
# the application.
|
97
|
-
# config.compiled_ruby_files = FileList['app/**/*.rb']
|
98
|
-
|
99
|
-
# Determines if ruby files in supporting gems will be compiled.
|
100
|
-
# Ignored unless compile feature is used.
|
101
|
-
config.compile_gems = true
|
102
|
-
|
103
|
-
# When set it specify the bytecode version for compiled class files
|
104
|
-
# config.bytecode_version = "1.6"
|
105
|
-
|
106
|
-
# When set to true, Warbler will override the value of ENV['GEM_HOME'] even it
|
107
|
-
# has already been set. When set to false it will use any existing value of
|
108
|
-
# GEM_HOME if it is set.
|
109
|
-
# config.override_gem_home = true
|
110
|
-
|
111
|
-
# Allows for specifing custom executables
|
112
|
-
# config.executable = ["exe/hetzner-k3s"]
|
113
|
-
|
114
|
-
# Sets default (prefixed) parameters for the executables
|
115
|
-
# config.executable_params = "do:something"
|
116
|
-
|
117
|
-
# If set to true, moves jar files into WEB-INF/lib. Prior to version 1.4.2 of Warbler this was done
|
118
|
-
# by default. But since 1.4.2 this config defaults to false. It may need to be set to true for
|
119
|
-
# web servers that do not explode the WAR file.
|
120
|
-
# Alternatively, this option can be set to a regular expression, which will
|
121
|
-
# act as a jar selector -- only jar files that match the pattern will be
|
122
|
-
# included in the archive.
|
123
|
-
# config.move_jars_to_webinf_lib = false
|
124
|
-
|
125
|
-
# === War files only below here ===
|
126
|
-
|
127
|
-
# Embedded webserver to use with the 'executable' feature. Currently supported
|
128
|
-
# webservers are:
|
129
|
-
# - *jetty* - Embedded Jetty from Eclipse
|
130
|
-
# config.webserver = 'jetty'
|
131
|
-
|
132
|
-
# Path to the pre-bundled gem directory inside the war file. Default
|
133
|
-
# is 'WEB-INF/gems'. Specify path if gems are already bundled
|
134
|
-
# before running Warbler. This also sets 'gem.path' inside web.xml.
|
135
|
-
# config.gem_path = "WEB-INF/vendor/bundler_gems"
|
136
|
-
|
137
|
-
# Files for WEB-INF directory (next to web.xml). This contains
|
138
|
-
# web.xml by default. If there is an .erb-File it will be processed
|
139
|
-
# with webxml-config. You may want to exclude this file via
|
140
|
-
# config.excludes.
|
141
|
-
# config.webinf_files += FileList["jboss-web.xml"]
|
142
|
-
|
143
|
-
# Files to be included in the root of the webapp. Note that files in public
|
144
|
-
# will have the leading 'public/' part of the path stripped during staging.
|
145
|
-
# config.public_html = FileList["public/**/*", "doc/**/*"]
|
146
|
-
|
147
|
-
# Pathmaps for controlling how public HTML files are copied into the .war
|
148
|
-
# config.pathmaps.public_html = ["%{public/,}p"]
|
149
|
-
|
150
|
-
# Value of RAILS_ENV for the webapp -- default as shown below
|
151
|
-
# config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
|
152
|
-
|
153
|
-
# Public ROOT mapping, by default assets are copied into .war ROOT directory.
|
154
|
-
# config.public.root = ''
|
155
|
-
|
156
|
-
# Application booter to use, either :rack or :rails (autodetected by default)
|
157
|
-
# config.webxml.booter = :rails
|
158
|
-
|
159
|
-
# When using the :rack booter, "Rackup" script to use.
|
160
|
-
# - For 'rackup.path', the value points to the location of the rackup
|
161
|
-
# script in the web archive file. You need to make sure this file
|
162
|
-
# gets included in the war, possibly by adding it to config.includes
|
163
|
-
# or config.webinf_files above.
|
164
|
-
# - For 'rackup', the rackup script you provide as an inline string
|
165
|
-
# is simply embedded in web.xml.
|
166
|
-
# The script is evaluated in a Rack::Builder to load the application.
|
167
|
-
# Examples:
|
168
|
-
# config.webxml.rackup.path = 'WEB-INF/hello.ru'
|
169
|
-
# config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
|
170
|
-
# config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
|
171
|
-
|
172
|
-
# Control the pool of Rails runtimes. Leaving unspecified means
|
173
|
-
# the pool will grow as needed to service requests. It is recommended
|
174
|
-
# that you fix these values when running a production server!
|
175
|
-
# If you're using threadsafe! mode, you probably don't want to set these values,
|
176
|
-
# since 1 runtime(default for threadsafe mode) will be enough.
|
177
|
-
# config.webxml.jruby.min.runtimes = 2
|
178
|
-
# config.webxml.jruby.max.runtimes = 4
|
179
|
-
|
180
|
-
# JNDI data source name
|
181
|
-
# config.webxml.jndi = 'jdbc/rails'
|
182
|
-
end
|