kdeploy 0.1.0
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 +7 -0
- data/.editorconfig +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +100 -0
- data/LICENSE +21 -0
- data/README.md +1030 -0
- data/Rakefile +45 -0
- data/bin/kdeploy +7 -0
- data/kdeploy.gemspec +49 -0
- data/lib/kdeploy/banner.rb +28 -0
- data/lib/kdeploy/cli.rb +1452 -0
- data/lib/kdeploy/command.rb +182 -0
- data/lib/kdeploy/configuration.rb +83 -0
- data/lib/kdeploy/dsl.rb +566 -0
- data/lib/kdeploy/host.rb +85 -0
- data/lib/kdeploy/inventory.rb +243 -0
- data/lib/kdeploy/logger.rb +100 -0
- data/lib/kdeploy/pipeline.rb +249 -0
- data/lib/kdeploy/runner.rb +190 -0
- data/lib/kdeploy/ssh_connection.rb +187 -0
- data/lib/kdeploy/statistics.rb +439 -0
- data/lib/kdeploy/task.rb +240 -0
- data/lib/kdeploy/template.rb +173 -0
- data/lib/kdeploy/version.rb +6 -0
- data/lib/kdeploy.rb +106 -0
- data/scripts/common_tasks.rb +218 -0
- data/scripts/deploy.rb +50 -0
- metadata +178 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c41f153d5748fd3d0bd19f98051bba9bd2e1e899f11ceb7660de3c8a535fb866
|
4
|
+
data.tar.gz: fae626a3aacc2aa7ff78d6933e7278674f22e7a93cfc2f4f8d0e3942385bb869
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: efc41c5cf08f128b4b0bceaf8a3c31c7ffb04841d7a5aa3c7c1fa076944552b3fa64a1b8970476bd8ccd1c97ddbbde936aaea748eb09aba411f9829018ac4e89
|
7
|
+
data.tar.gz: 676bdb32318e3cf2840ef100cf5ec5d8a7b267756ad8ac762c6fccaf31d549a1ad46dd9af61f0f8d0b700d708a972bf0790cff064d219640429e0a55a72dddcc
|
data/.editorconfig
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# require:
|
2
|
+
# - rubocop-rspec
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 3.2.2
|
6
|
+
NewCops: enable
|
7
|
+
Exclude:
|
8
|
+
- 'vendor/**/*'
|
9
|
+
- 'tmp/**/*'
|
10
|
+
- 'bin/**/*'
|
11
|
+
SuggestExtensions: false
|
12
|
+
|
13
|
+
# Style
|
14
|
+
Style/Documentation:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Style/FrozenStringLiteralComment:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
Style/StringLiterals:
|
21
|
+
EnforcedStyle: single_quotes
|
22
|
+
|
23
|
+
Style/StringLiteralsInInterpolation:
|
24
|
+
EnforcedStyle: single_quotes
|
25
|
+
|
26
|
+
# Layout
|
27
|
+
Layout/LineLength:
|
28
|
+
Max: 150
|
29
|
+
AllowedPatterns: ['\A#']
|
30
|
+
|
31
|
+
Layout/MultilineMethodCallIndentation:
|
32
|
+
EnforcedStyle: indented
|
33
|
+
|
34
|
+
# Metrics
|
35
|
+
Metrics/ClassLength:
|
36
|
+
Max: 400
|
37
|
+
Exclude:
|
38
|
+
- 'lib/kdeploy/cli.rb' # CLI class is naturally large
|
39
|
+
|
40
|
+
Metrics/MethodLength:
|
41
|
+
Max: 40
|
42
|
+
Exclude:
|
43
|
+
- 'spec/**/*'
|
44
|
+
- 'lib/kdeploy/cli.rb' # CLI methods can be longer
|
45
|
+
|
46
|
+
Metrics/BlockLength:
|
47
|
+
Exclude:
|
48
|
+
- 'spec/**/*'
|
49
|
+
- '*.gemspec'
|
50
|
+
|
51
|
+
Metrics/AbcSize:
|
52
|
+
Max: 35
|
53
|
+
Exclude:
|
54
|
+
- 'lib/kdeploy/inventory.rb' # Inventory parsing is complex
|
55
|
+
|
56
|
+
Metrics/CyclomaticComplexity:
|
57
|
+
Max: 15
|
58
|
+
Exclude:
|
59
|
+
- 'lib/kdeploy/inventory.rb' # Inventory parsing is complex
|
60
|
+
|
61
|
+
Metrics/PerceivedComplexity:
|
62
|
+
Max: 15
|
63
|
+
Exclude:
|
64
|
+
- 'lib/kdeploy/inventory.rb' # Inventory parsing is complex
|
65
|
+
|
66
|
+
Metrics/ParameterLists:
|
67
|
+
Max: 8 # Some methods need more parameters
|
68
|
+
|
69
|
+
# Naming
|
70
|
+
Naming/PredicatePrefix:
|
71
|
+
ForbiddenPrefixes:
|
72
|
+
- 'is_'
|
73
|
+
|
74
|
+
Naming/PredicateMethod:
|
75
|
+
Exclude:
|
76
|
+
- 'spec/**/*' # Mock methods don't need to follow naming conventions
|
77
|
+
- 'lib/kdeploy/dsl.rb' # DSL methods may have various naming patterns
|
78
|
+
|
79
|
+
# Lint
|
80
|
+
Lint/DuplicateBranch:
|
81
|
+
Exclude:
|
82
|
+
- 'lib/kdeploy/logger.rb' # Logger level mapping has duplicate branches
|
83
|
+
|
84
|
+
Lint/UnusedMethodArgument:
|
85
|
+
Exclude:
|
86
|
+
- 'spec/**/*' # Mock methods may have unused arguments
|
87
|
+
|
88
|
+
Lint/UselessAssignment:
|
89
|
+
Exclude:
|
90
|
+
- 'lib/kdeploy/ssh_connection.rb' # Some assignments are for clarity
|
91
|
+
|
92
|
+
# RSpec (disabled - requires rubocop-rspec gem)
|
93
|
+
# RSpec/ExampleLength:
|
94
|
+
# Max: 10
|
95
|
+
#
|
96
|
+
# RSpec/MultipleExpectations:
|
97
|
+
# Max: 5
|
98
|
+
#
|
99
|
+
# RSpec/NestedGroups:
|
100
|
+
# Max: 4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 Kdeploy Team
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|