hetzner-k3s 0.6.0.pre29 → 0.6.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a2e7c7d55086d18121c113389aa9d04932fd0afd825db48761fa00ea6e24b45
4
- data.tar.gz: 3fbb269dbf6ee860ec93f991d190917c8a92d5d198be193d83043abc97c0f456
3
+ metadata.gz: 4d8a90e68ae6fb3b434fb4f65ed00a9508fa405d5d8cf87c8cc45e86c655ec56
4
+ data.tar.gz: f35647f4e10202a483aa73b79d9c4d7728904978d72943cd7f51ccdb8ff739fe
5
5
  SHA512:
6
- metadata.gz: 680d2d35d82a5d4106c1f6782dad0c0fd8b4d66a96fc47c05c56a8148d13db764cbfe5dc9918939c237206fc0c1d86a9075f13e4da9571baba9fae4d1840ff80
7
- data.tar.gz: 496a8d1db2275aab34b07463057330756e4346c3a22155879571adc52d0fc6dc520bbe179aa3262553f15962bda993118962c363f438b5c22941bf4309ea5c46
6
+ metadata.gz: 41ecc26d3b5aaa22b363ff425ef7d0d47a3510aecdc8a8389fd16d2889a77ce278152a20a885a1ba460b19bc07224e1a61c6d3cb8e9f0ee554692f90564a8553
7
+ data.tar.gz: 37860df2822b9316876814bb8a33df5fbbc087f3c21ef53faf8be35ec56cfbd584bc62db1d1f98558e32d75985fe6d6e0836934838b23d0bb89ffc135a336d08
@@ -0,0 +1,32 @@
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 ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ /kubeconfig
13
+ /cluster_config.yaml
14
+ dist/hetzner-k3s.jar
15
+ dist/hetzner-k3s
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,135 @@
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 ADDED
@@ -0,0 +1 @@
1
+ ruby-2.7.1
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.2
6
+ before_install: gem install bundler -v 2.1.4
data/Gemfile CHANGED
@@ -5,5 +5,16 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in k3s.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 12.0'
9
- gem 'rspec', '~> 3.0'
8
+ # platforms :jruby do
9
+ # gem 'rake', '~> 12.0'
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
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hetzner-k3s (0.6.0.pre14)
4
+ hetzner-k3s (0.5.9)
5
5
  bcrypt_pbkdf
6
6
  childprocess
7
7
  ed25519
@@ -16,7 +16,6 @@ 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)
20
19
  ed25519 (1.3.0)
21
20
  httparty (0.20.0)
22
21
  mime-types (~> 3.0)
@@ -25,27 +24,13 @@ GEM
25
24
  mime-types-data (~> 3.2015)
26
25
  mime-types-data (3.2022.0105)
27
26
  multi_xml (0.6.0)
28
- net-ssh (7.0.1)
27
+ net-ssh (6.1.0)
29
28
  parallel (1.20.1)
30
29
  parser (3.1.2.1)
31
30
  ast (~> 2.4.1)
32
31
  rainbow (3.1.1)
33
- rake (12.3.3)
34
32
  regexp_parser (2.5.0)
35
33
  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)
49
34
  rubocop (1.12.1)
50
35
  parallel (~> 1.10)
51
36
  parser (>= 3.0.0.0)
@@ -68,8 +53,6 @@ PLATFORMS
68
53
 
69
54
  DEPENDENCIES
70
55
  hetzner-k3s!
71
- rake (~> 12.0)
72
- rspec (~> 3.0)
73
56
  rubocop
74
57
 
75
58
  BUNDLED WITH
data/bin/build.sh ADDED
@@ -0,0 +1,18 @@
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 ADDED
@@ -0,0 +1,14 @@
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 ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/config/warble.rb ADDED
@@ -0,0 +1,182 @@
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
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'
24
23
  spec.add_dependency 'childprocess'
25
24
  spec.add_dependency 'ed25519'
26
25
  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,11 +31,9 @@ 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
- # `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/**/*']
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
39
37
  spec.bindir = 'exe'
40
38
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
41
39
  spec.require_paths = ['lib']
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hetzner
4
4
  module K3s
5
- VERSION = '0.6.0.pre29'
5
+ VERSION = '0.6.0.rc1'
6
6
  end
7
7
  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.pre29
4
+ version: 0.6.0.rc1
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
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0'
20
- type: :runtime
19
+ name: childprocess
21
20
  prerelease: false
21
+ type: :runtime
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
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
- type: :runtime
33
+ name: ed25519
35
34
  prerelease: false
35
+ type: :runtime
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
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - ">="
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
- type: :runtime
47
+ name: httparty
49
48
  prerelease: false
49
+ type: :runtime
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
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- type: :runtime
61
+ name: bcrypt_pbkdf
63
62
  prerelease: false
63
+ type: :runtime
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
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - ">="
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0'
76
- type: :runtime
75
+ name: net-ssh
77
76
  prerelease: false
77
+ type: :runtime
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
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - ">="
88
87
  - !ruby/object:Gem::Version
89
88
  version: '0'
90
- type: :runtime
89
+ name: sshkey
91
90
  prerelease: false
91
+ type: :runtime
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
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
100
  - - ">="
102
101
  - !ruby/object:Gem::Version
103
102
  version: '0'
104
- type: :runtime
103
+ name: thor
105
104
  prerelease: false
105
+ type: :runtime
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
113
112
  requirement: !ruby/object:Gem::Requirement
114
113
  requirements:
115
114
  - - ">="
116
115
  - !ruby/object:Gem::Version
117
116
  version: '0'
118
- type: :development
117
+ name: rubocop
119
118
  prerelease: false
119
+ type: :development
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
@@ -131,6 +131,12 @@ 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"
134
140
  - CODE_OF_CONDUCT.md
135
141
  - Dockerfile
136
142
  - Gemfile
@@ -138,7 +144,11 @@ files:
138
144
  - LICENSE.txt
139
145
  - README.md
140
146
  - Rakefile
147
+ - bin/build.sh
148
+ - bin/console.sh
149
+ - bin/setup.sh
141
150
  - cluster_config.yaml.example
151
+ - config/warble.rb
142
152
  - entrypoint.sh
143
153
  - exe/hetzner-k3s
144
154
  - hetzner-k3s.gemspec
@@ -156,8 +166,6 @@ files:
156
166
  - lib/hetzner/k3s/configuration.rb
157
167
  - lib/hetzner/k3s/version.rb
158
168
  - lib/hetzner/utils.rb
159
- - spec/k3s_spec.rb
160
- - spec/spec_helper.rb
161
169
  homepage: https://github.com/vitobotta/hetzner-k3s
162
170
  licenses:
163
171
  - MIT
@@ -181,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
189
  - !ruby/object:Gem::Version
182
190
  version: 1.3.1
183
191
  requirements: []
184
- rubygems_version: 3.1.2
192
+ rubygems_version: 3.2.29
185
193
  signing_key:
186
194
  specification_version: 4
187
195
  summary: A CLI to create a Kubernetes cluster in Hetzner Cloud very quickly using
data/spec/k3s_spec.rb DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- RSpec.describe K3s do
4
- it 'has a version number' do
5
- expect(K3s::VERSION).not_to be nil
6
- end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,16 +0,0 @@
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