carioca 2.1.4 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/.rubocop.yml +5 -3
- data/Gemfile +0 -1
- data/README.md +53 -0
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/bom.xml +104 -160
- data/carioca.gemspec +5 -4
- data/lib/carioca/configuration.rb +1 -1
- data/lib/carioca/constants.rb +9 -12
- data/lib/carioca/dependencies.rb +0 -4
- data/lib/carioca/mixin.rb +4 -4
- data/lib/carioca/registry.rb +8 -8
- data/lib/carioca/registry_file.rb +2 -2
- data/lib/carioca/services/debug.rb +6 -6
- data/lib/carioca/services/finisher.rb +108 -115
- data/lib/carioca/services/init.rb +1 -1
- data/lib/carioca/services/output.rb +10 -6
- data/lib/carioca/services/sanitycheck.rb +90 -106
- data/lib/carioca/services/securestore.rb +74 -75
- data/lib/carioca/services/setup.rb +55 -60
- data/lib/carioca/services/toolbox.rb +93 -94
- data/samples/Gemfile +4 -2
- data/samples/config/settings.yml +1 -1
- data/samples/test.rb +39 -47
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59956550392bbf8603dd8426a0595afb7cd207bb6929adac7a183eca58acc400
|
4
|
+
data.tar.gz: 95addcdb4fde913f5ec4dc4a15184634a24c27522e4f93a26b5912c55561d0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a26bacd589861a1543184a73791c3ea37ac0f05742efe82a414a5dc243f448824d10d9973f5b1c73fc8208fc167c004d8e67d82390c9bf6583695d673e645bf0
|
7
|
+
data.tar.gz: 48001979dde2a20fe79c140f72739b2d9d7dd93523082edd11c85f720225e14428fd6873e4e81c68d82c78fd51b43858e8156819ee76f78a4ae1044c69fede9e
|
data/.github/workflows/main.yml
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -615,6 +615,59 @@ titi
|
|
615
615
|
|
616
616
|
### Service Finisher
|
617
617
|
|
618
|
+
|
619
|
+
#### List of available return code and associated symbols :
|
620
|
+
|
621
|
+
- code : must be a clI OR HTTP return code
|
622
|
+
- key : a I18n service key in locales files (Carioca internals locales) see https://github.com/Ultragreen/carioca/tree/master/config/locales
|
623
|
+
|
624
|
+
```ruby
|
625
|
+
# global
|
626
|
+
not_root: { code: 40, key: 'finisher.messages.not_root' },
|
627
|
+
options_incompatibility: { code: 410, key: 'finisher.messages.options_incompatibility'},
|
628
|
+
service_dependence_missing: { code: 430, key: 'finisher.messages.service_dependence_missing'},
|
629
|
+
config_required: { code: 420, key: 'finisher.messages.config_required'},
|
630
|
+
setup_error: { code: 520, key: 'finisher.messages.setup_error'},
|
631
|
+
setup_success: { code: 0, key: 'finisher.messages.setup_success'},
|
632
|
+
sanitycheck_error: { code: 510, key: 'finisher.messages.sanitycheck_error'},
|
633
|
+
sanitycheck_success: { code: 0, key: 'finisher.messages.sanitycheck_success'},
|
634
|
+
configuration_error: { code: 501, key: 'finisher.messages.configuration_error'},
|
635
|
+
success_exit: { code: 0, key: 'finisher.messages.success_exit' },
|
636
|
+
quiet_exit: { code: 0 },
|
637
|
+
error_exit: { code: 50, key: 'finisher.messages.error_exit' },
|
638
|
+
|
639
|
+
# events
|
640
|
+
interrupt: { code: 330, key: 'finisher.messages.interrupt' },
|
641
|
+
|
642
|
+
# request & API
|
643
|
+
not_found: { code: 404, key: 'finisher.messages.not_found' },
|
644
|
+
already_exist: { code: 408, key: 'finisher.messages.already_exist' },
|
645
|
+
|
646
|
+
# daemon & API
|
647
|
+
status_ok: { code: 200, key: 'finisher.messages.status_ok' },
|
648
|
+
created: { code: 201, key: 'finisher.messages.created' },
|
649
|
+
accepted: { code: 202, key: 'finisher.messages.accepted' },
|
650
|
+
bad_request: { code: 400, key: 'finisher.messages.bad_request' },
|
651
|
+
status_ko: { code: 500, key: 'finisher.messages.status_ko' },
|
652
|
+
no_content: { code: 204, key: 'finisher.messages.no_content' },
|
653
|
+
```
|
654
|
+
|
655
|
+
This returns must be override from Config File (using Builtin Configuration Service) inbluding a key exit_cases:
|
656
|
+
like :
|
657
|
+
|
658
|
+
```yaml
|
659
|
+
---
|
660
|
+
:my_root:
|
661
|
+
:default:
|
662
|
+
:exit_cases:
|
663
|
+
:mystatus:
|
664
|
+
:code: 8000
|
665
|
+
key: 'my.own.i18n.key'
|
666
|
+
|
667
|
+
```
|
668
|
+
|
669
|
+
|
670
|
+
|
618
671
|
### Service Setup
|
619
672
|
|
620
673
|
### Service SanityCheck
|
data/Rakefile
CHANGED
@@ -45,17 +45,17 @@ namespace :yardoc do
|
|
45
45
|
end
|
46
46
|
task clobber: 'yardoc:clobber'
|
47
47
|
|
48
|
-
desc
|
48
|
+
desc 'Run CVE security audit over bundle'
|
49
49
|
task :audit do
|
50
50
|
system('bundle audit')
|
51
51
|
end
|
52
52
|
|
53
|
-
desc
|
53
|
+
desc 'Run dead line of code detection'
|
54
54
|
task :debride do
|
55
55
|
system('debride -w .debride_withelist .')
|
56
56
|
end
|
57
57
|
|
58
|
-
desc
|
58
|
+
desc 'Run SBOM CycloneDX Xml format file'
|
59
59
|
task :sbom do
|
60
60
|
system('cyclonedx-ruby -p .')
|
61
|
-
end
|
61
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.6
|