hetzner-k3s 0.6.0.pre13 → 0.6.0.pre14

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: aaaca44bbfba21c219d03f8bebc796d5b70283b26393fa530cf1fb223df5b9c9
4
- data.tar.gz: 073b9942b8b019222c69bb2e2bdb68a7790e2181b85bd770cfef57d133f3ab7d
3
+ metadata.gz: a51aa191364548bbce37533dc10734e65517b686581d84f1934bc913bc27b6e9
4
+ data.tar.gz: a3652188d2395591d1d006254b4954f4e69e755634269fc3548b239e1edcdcc7
5
5
  SHA512:
6
- metadata.gz: 15aab4d305563c4d3fa1b3169cfa3148c50baa35ddc83ad1648a3348297e40fa3f49b23b2392a4cca764b407247b053a3eca0ee0a5dcf47b0d41ee7bb2d6cacd
7
- data.tar.gz: 51c00651ef99932f43ecb86c84f54baa30812945a1c57377d690e779daa049706bbfd2c9a09ff84ea1400fa07f43bb0a6a49d9e802fa070471d5a4a8f97ceb95
6
+ metadata.gz: 02723e98e73716e3936060cacf8f88f73c5467e11354e11378dff2a5df070eb2be229b9e9e9cc8f3717c07971298eb882ac5200953667190dc6ba11301c76fdf
7
+ data.tar.gz: c9b158c06fa592670f82ee4a242c8449b6f99a5d8bd5843d8fcfcfaa0b70f735f03c3ea9df6eea73f19a460b09837c624b7f53a04a5feeecec4ee5f8490e1ae8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hetzner-k3s (0.6.0.pre12)
4
+ hetzner-k3s (0.6.0.pre14)
5
5
  bcrypt_pbkdf
6
6
  childprocess
7
7
  ed25519
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
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
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']
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hetzner
4
4
  module K3s
5
- VERSION = '0.6.0.pre13'
5
+ VERSION = '0.6.0.pre14'
6
6
  end
7
7
  end
data/spec/k3s_spec.rb ADDED
@@ -0,0 +1,11 @@
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
@@ -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.pre13
4
+ version: 0.6.0.pre14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vito Botta
@@ -11,7 +11,7 @@ cert_chain: []
11
11
  date: 2022-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: childprocess
14
+ name: bcrypt_pbkdf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: ed25519
28
+ name: childprocess
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: httparty
42
+ name: ed25519
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: bcrypt_pbkdf
56
+ name: httparty
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -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
@@ -1,97 +0,0 @@
1
- name: Create Release
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*'
7
-
8
- jobs:
9
- create_release:
10
- name: Create Release
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Create Release
14
- id: create_release
15
- uses: softprops/action-gh-release@v1
16
- with:
17
- name: ${{ github.ref_name }}
18
- draft: false
19
- prerelease: false
20
- generate_release_notes: true
21
-
22
- build_release:
23
- name: Build Release
24
- needs: create_release
25
- strategy:
26
- matrix:
27
- os: [macos-latest]
28
- include:
29
- - os: ubuntu-latest
30
- release_suffix: ubuntu
31
- - os: macos-latest
32
- release_suffix: mac
33
- - os: windows-latest
34
- release_suffix: windows
35
- runs-on: ${{ matrix.os }}
36
- steps:
37
- - name: Checkout code
38
- uses: actions/checkout@v2
39
-
40
- # - name: Run Linux Build
41
- # if: matrix.os == 'ubuntu-latest'
42
- # run: |
43
-
44
- - uses: ruby/setup-ruby@v1
45
- with:
46
- ruby-version: '2.7.1'
47
-
48
- - name: Run Mac Build
49
- if: matrix.os == 'macos-latest'
50
- run: |
51
- brew install squashfs openssl@1.1
52
- wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
53
- chmod +x rubyc
54
- ./rubyc -r ./ -o ./hetzner-k3s-${{ matrix.release_suffix }} exe/hetzner-k3s --openssl-dir=$(openssl version -d | awk -F'"' '$0=$2')
55
- chmod +x ./hetzner-k3s-${{ matrix.release_suffix }}
56
-
57
- # - name: Run Windows Build
58
- # if: matrix.os == 'windows-latest'
59
- # run: echo "Windows Latest" > release_windows
60
-
61
- - name: Release
62
- uses: softprops/action-gh-release@v1
63
- with:
64
- tag_name: ${{ needs.create_release.outputs.tag-name }}
65
- files: hetzner-k3s-${{ matrix.release_suffix }}
66
-
67
-
68
-
69
-
70
- # release:
71
- # runs-on: macos-12
72
- # steps:
73
- # - uses: actions/checkout@v3
74
-
75
- # - name: Set output
76
- # id: vars
77
- # run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
78
-
79
- # - uses: ruby/setup-ruby@v1
80
- # with:
81
- # ruby-version: '2.7.1'
82
-
83
- # - name: "Install dependencies"
84
- # run: |
85
- # brew install squashfs openssl@1.1
86
-
87
- # - name: Build for macOS
88
- # run: |
89
- # wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
90
- # chmod +x rubyc
91
- # ./rubyc -r ./ -o ./hetzner-k3s-macos exe/hetzner-k3s --openssl-dir=/usr/local/etc/openssl@1.1/
92
-
93
- # - uses: ncipollo/release-action@v1
94
- # with:
95
- # tag: ${{ steps.vars.outputs.tag }}
96
- # artifacts: "hetzner-k3s-macos"
97
- # token: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore DELETED
@@ -1,15 +0,0 @@
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 DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
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
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.2
6
- before_install: gem install bundler -v 2.1.4
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
@@ -1,8 +0,0 @@
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 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