inspec 4.18.51 → 4.18.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/inspec.gemspec +15 -37
- data/lib/resource_support/aws/aws_resource_mixin.rb +1 -1
- metadata +22 -709
- data/Gemfile +0 -61
- data/LICENSE +0 -14
- data/README.md +0 -474
- data/etc/deprecations.json +0 -125
- data/etc/plugin_filters.json +0 -45
- data/lib/bundles/README.md +0 -3
- data/lib/bundles/inspec-compliance/api.rb +0 -7
- data/lib/bundles/inspec-compliance/configuration.rb +0 -7
- data/lib/bundles/inspec-compliance/http.rb +0 -7
- data/lib/bundles/inspec-compliance/support.rb +0 -7
- data/lib/bundles/inspec-compliance/target.rb +0 -7
- data/lib/bundles/inspec-supermarket.rb +0 -9
- data/lib/bundles/inspec-supermarket/README.md +0 -45
- data/lib/bundles/inspec-supermarket/api.rb +0 -87
- data/lib/bundles/inspec-supermarket/cli.rb +0 -71
- data/lib/bundles/inspec-supermarket/target.rb +0 -31
- data/lib/inspec.rb +0 -30
- data/lib/inspec/archive/tar.rb +0 -25
- data/lib/inspec/archive/zip.rb +0 -15
- data/lib/inspec/backend.rb +0 -101
- data/lib/inspec/base_cli.rb +0 -318
- data/lib/inspec/cached_fetcher.rb +0 -65
- data/lib/inspec/cli.rb +0 -469
- data/lib/inspec/completions/bash.sh.erb +0 -45
- data/lib/inspec/completions/fish.sh.erb +0 -34
- data/lib/inspec/completions/zsh.sh.erb +0 -61
- data/lib/inspec/config.rb +0 -511
- data/lib/inspec/control_eval_context.rb +0 -248
- data/lib/inspec/dependencies/cache.rb +0 -74
- data/lib/inspec/dependencies/dependency_set.rb +0 -93
- data/lib/inspec/dependencies/lockfile.rb +0 -115
- data/lib/inspec/dependencies/requirement.rb +0 -135
- data/lib/inspec/dependencies/resolver.rb +0 -86
- data/lib/inspec/describe_base.rb +0 -53
- data/lib/inspec/dist.rb +0 -20
- data/lib/inspec/dsl.rb +0 -115
- data/lib/inspec/dsl_shared.rb +0 -32
- data/lib/inspec/env_printer.rb +0 -156
- data/lib/inspec/errors.rb +0 -18
- data/lib/inspec/exceptions.rb +0 -11
- data/lib/inspec/expect.rb +0 -42
- data/lib/inspec/fetcher.rb +0 -48
- data/lib/inspec/fetcher/git.rb +0 -211
- data/lib/inspec/fetcher/local.rb +0 -116
- data/lib/inspec/fetcher/mock.rb +0 -34
- data/lib/inspec/fetcher/url.rb +0 -281
- data/lib/inspec/file_provider.rb +0 -318
- data/lib/inspec/formatters.rb +0 -3
- data/lib/inspec/formatters/base.rb +0 -269
- data/lib/inspec/formatters/json_rspec.rb +0 -20
- data/lib/inspec/formatters/show_progress.rb +0 -12
- data/lib/inspec/globals.rb +0 -9
- data/lib/inspec/impact.rb +0 -36
- data/lib/inspec/input.rb +0 -421
- data/lib/inspec/input_dsl_helpers.rb +0 -26
- data/lib/inspec/input_registry.rb +0 -315
- data/lib/inspec/library_eval_context.rb +0 -55
- data/lib/inspec/log.rb +0 -7
- data/lib/inspec/metadata.rb +0 -253
- data/lib/inspec/method_source.rb +0 -20
- data/lib/inspec/objects.rb +0 -14
- data/lib/inspec/objects/control.rb +0 -85
- data/lib/inspec/objects/describe.rb +0 -106
- data/lib/inspec/objects/each_loop.rb +0 -41
- data/lib/inspec/objects/input.rb +0 -49
- data/lib/inspec/objects/list.rb +0 -15
- data/lib/inspec/objects/or_test.rb +0 -45
- data/lib/inspec/objects/ruby_helper.rb +0 -13
- data/lib/inspec/objects/tag.rb +0 -32
- data/lib/inspec/objects/test.rb +0 -94
- data/lib/inspec/objects/value.rb +0 -32
- data/lib/inspec/plugin/v1.rb +0 -2
- data/lib/inspec/plugin/v1/plugin_types/cli.rb +0 -22
- data/lib/inspec/plugin/v1/plugin_types/fetcher.rb +0 -83
- data/lib/inspec/plugin/v1/plugin_types/resource.rb +0 -176
- data/lib/inspec/plugin/v1/plugin_types/secret.rb +0 -11
- data/lib/inspec/plugin/v1/plugin_types/source_reader.rb +0 -36
- data/lib/inspec/plugin/v1/plugins.rb +0 -59
- data/lib/inspec/plugin/v1/registry.rb +0 -90
- data/lib/inspec/plugin/v2.rb +0 -46
- data/lib/inspec/plugin/v2/activator.rb +0 -40
- data/lib/inspec/plugin/v2/config_file.rb +0 -151
- data/lib/inspec/plugin/v2/filter.rb +0 -96
- data/lib/inspec/plugin/v2/installer.rb +0 -512
- data/lib/inspec/plugin/v2/loader.rb +0 -321
- data/lib/inspec/plugin/v2/plugin_base.rb +0 -112
- data/lib/inspec/plugin/v2/plugin_types/cli.rb +0 -49
- data/lib/inspec/plugin/v2/plugin_types/dsl.rb +0 -11
- data/lib/inspec/plugin/v2/plugin_types/input.rb +0 -34
- data/lib/inspec/plugin/v2/plugin_types/mock.rb +0 -12
- data/lib/inspec/plugin/v2/registry.rb +0 -98
- data/lib/inspec/plugin/v2/status.rb +0 -29
- data/lib/inspec/profile.rb +0 -658
- data/lib/inspec/profile_context.rb +0 -203
- data/lib/inspec/profile_vendor.rb +0 -84
- data/lib/inspec/reporters.rb +0 -73
- data/lib/inspec/reporters/automate.rb +0 -78
- data/lib/inspec/reporters/base.rb +0 -25
- data/lib/inspec/reporters/cli.rb +0 -370
- data/lib/inspec/reporters/json.rb +0 -113
- data/lib/inspec/reporters/json_automate.rb +0 -80
- data/lib/inspec/reporters/json_min.rb +0 -48
- data/lib/inspec/reporters/junit.rb +0 -77
- data/lib/inspec/reporters/yaml.rb +0 -20
- data/lib/inspec/require_loader.rb +0 -29
- data/lib/inspec/resource.rb +0 -114
- data/lib/inspec/resources.rb +0 -130
- data/lib/inspec/resources/aide_conf.rb +0 -153
- data/lib/inspec/resources/apache.rb +0 -47
- data/lib/inspec/resources/apache_conf.rb +0 -156
- data/lib/inspec/resources/apt.rb +0 -151
- data/lib/inspec/resources/audit_policy.rb +0 -64
- data/lib/inspec/resources/auditd.rb +0 -251
- data/lib/inspec/resources/auditd_conf.rb +0 -45
- data/lib/inspec/resources/bash.rb +0 -33
- data/lib/inspec/resources/bond.rb +0 -70
- data/lib/inspec/resources/bridge.rb +0 -125
- data/lib/inspec/resources/bsd_service.rb +0 -2
- data/lib/inspec/resources/chocolatey_package.rb +0 -82
- data/lib/inspec/resources/command.rb +0 -91
- data/lib/inspec/resources/cpan.rb +0 -58
- data/lib/inspec/resources/cran.rb +0 -64
- data/lib/inspec/resources/crontab.rb +0 -173
- data/lib/inspec/resources/csv.rb +0 -56
- data/lib/inspec/resources/dh_params.rb +0 -83
- data/lib/inspec/resources/directory.rb +0 -23
- data/lib/inspec/resources/docker.rb +0 -274
- data/lib/inspec/resources/docker_container.rb +0 -91
- data/lib/inspec/resources/docker_image.rb +0 -84
- data/lib/inspec/resources/docker_object.rb +0 -52
- data/lib/inspec/resources/docker_plugin.rb +0 -64
- data/lib/inspec/resources/docker_service.rb +0 -91
- data/lib/inspec/resources/elasticsearch.rb +0 -165
- data/lib/inspec/resources/etc_fstab.rb +0 -96
- data/lib/inspec/resources/etc_group.rb +0 -157
- data/lib/inspec/resources/etc_hosts.rb +0 -68
- data/lib/inspec/resources/etc_hosts_allow.rb +0 -2
- data/lib/inspec/resources/etc_hosts_allow_deny.rb +0 -114
- data/lib/inspec/resources/etc_hosts_deny.rb +0 -2
- data/lib/inspec/resources/file.rb +0 -339
- data/lib/inspec/resources/filesystem.rb +0 -139
- data/lib/inspec/resources/firewalld.rb +0 -148
- data/lib/inspec/resources/gem.rb +0 -80
- data/lib/inspec/resources/group.rb +0 -2
- data/lib/inspec/resources/groups.rb +0 -241
- data/lib/inspec/resources/grub_conf.rb +0 -230
- data/lib/inspec/resources/host.rb +0 -310
- data/lib/inspec/resources/http.rb +0 -275
- data/lib/inspec/resources/iis_app.rb +0 -101
- data/lib/inspec/resources/iis_app_pool.rb +0 -127
- data/lib/inspec/resources/iis_site.rb +0 -148
- data/lib/inspec/resources/iis_website.rb +0 -2
- data/lib/inspec/resources/inetd_conf.rb +0 -53
- data/lib/inspec/resources/ini.rb +0 -28
- data/lib/inspec/resources/interface.rb +0 -204
- data/lib/inspec/resources/ip6tables.rb +0 -79
- data/lib/inspec/resources/iptables.rb +0 -80
- data/lib/inspec/resources/json.rb +0 -116
- data/lib/inspec/resources/kernel_module.rb +0 -106
- data/lib/inspec/resources/kernel_parameter.rb +0 -54
- data/lib/inspec/resources/key_rsa.rb +0 -66
- data/lib/inspec/resources/ksh.rb +0 -33
- data/lib/inspec/resources/launchd_service.rb +0 -2
- data/lib/inspec/resources/limits_conf.rb +0 -45
- data/lib/inspec/resources/linux_kernel_parameter.rb +0 -2
- data/lib/inspec/resources/login_defs.rb +0 -56
- data/lib/inspec/resources/mount.rb +0 -88
- data/lib/inspec/resources/mssql_session.rb +0 -117
- data/lib/inspec/resources/mysql.rb +0 -81
- data/lib/inspec/resources/mysql_conf.rb +0 -128
- data/lib/inspec/resources/mysql_session.rb +0 -88
- data/lib/inspec/resources/nginx.rb +0 -96
- data/lib/inspec/resources/nginx_conf.rb +0 -232
- data/lib/inspec/resources/noop.rb +0 -9
- data/lib/inspec/resources/npm.rb +0 -68
- data/lib/inspec/resources/ntp_conf.rb +0 -51
- data/lib/inspec/resources/oneget.rb +0 -71
- data/lib/inspec/resources/oracledb_session.rb +0 -149
- data/lib/inspec/resources/os.rb +0 -34
- data/lib/inspec/resources/os_env.rb +0 -86
- data/lib/inspec/resources/package.rb +0 -391
- data/lib/inspec/resources/packages.rb +0 -111
- data/lib/inspec/resources/parse_config.rb +0 -112
- data/lib/inspec/resources/parse_config_file.rb +0 -2
- data/lib/inspec/resources/passwd.rb +0 -73
- data/lib/inspec/resources/pip.rb +0 -132
- data/lib/inspec/resources/platform.rb +0 -112
- data/lib/inspec/resources/port.rb +0 -791
- data/lib/inspec/resources/postfix_conf.rb +0 -35
- data/lib/inspec/resources/postgres.rb +0 -152
- data/lib/inspec/resources/postgres_conf.rb +0 -116
- data/lib/inspec/resources/postgres_hba_conf.rb +0 -86
- data/lib/inspec/resources/postgres_ident_conf.rb +0 -75
- data/lib/inspec/resources/postgres_session.rb +0 -70
- data/lib/inspec/resources/powershell.rb +0 -67
- data/lib/inspec/resources/ppa.rb +0 -2
- data/lib/inspec/resources/processes.rb +0 -219
- data/lib/inspec/resources/rabbitmq_conf.rb +0 -2
- data/lib/inspec/resources/rabbitmq_config.rb +0 -52
- data/lib/inspec/resources/registry_key.rb +0 -296
- data/lib/inspec/resources/runit_service.rb +0 -2
- data/lib/inspec/resources/script.rb +0 -1
- data/lib/inspec/resources/security_identifier.rb +0 -91
- data/lib/inspec/resources/security_policy.rb +0 -182
- data/lib/inspec/resources/service.rb +0 -820
- data/lib/inspec/resources/shadow.rb +0 -150
- data/lib/inspec/resources/ssh_config.rb +0 -98
- data/lib/inspec/resources/sshd_config.rb +0 -2
- data/lib/inspec/resources/ssl.rb +0 -99
- data/lib/inspec/resources/sys_info.rb +0 -119
- data/lib/inspec/resources/systemd_service.rb +0 -2
- data/lib/inspec/resources/sysv_service.rb +0 -2
- data/lib/inspec/resources/toml.rb +0 -30
- data/lib/inspec/resources/upstart_service.rb +0 -2
- data/lib/inspec/resources/user.rb +0 -1
- data/lib/inspec/resources/users.rb +0 -742
- data/lib/inspec/resources/vbscript.rb +0 -67
- data/lib/inspec/resources/virtualization.rb +0 -255
- data/lib/inspec/resources/windows_feature.rb +0 -126
- data/lib/inspec/resources/windows_hotfix.rb +0 -37
- data/lib/inspec/resources/windows_registry_key.rb +0 -2
- data/lib/inspec/resources/windows_task.rb +0 -112
- data/lib/inspec/resources/wmi.rb +0 -109
- data/lib/inspec/resources/x509_certificate.rb +0 -143
- data/lib/inspec/resources/xinetd_conf.rb +0 -103
- data/lib/inspec/resources/xml.rb +0 -48
- data/lib/inspec/resources/yaml.rb +0 -42
- data/lib/inspec/resources/yum.rb +0 -162
- data/lib/inspec/resources/zfs_dataset.rb +0 -62
- data/lib/inspec/resources/zfs_pool.rb +0 -50
- data/lib/inspec/rspec_extensions.rb +0 -116
- data/lib/inspec/rule.rb +0 -389
- data/lib/inspec/runner.rb +0 -333
- data/lib/inspec/runner_mock.rb +0 -37
- data/lib/inspec/runner_rspec.rb +0 -184
- data/lib/inspec/runtime_profile.rb +0 -23
- data/lib/inspec/schema.rb +0 -245
- data/lib/inspec/secrets.rb +0 -15
- data/lib/inspec/secrets/yaml.rb +0 -29
- data/lib/inspec/shell.rb +0 -211
- data/lib/inspec/shell_detector.rb +0 -89
- data/lib/inspec/source_reader.rb +0 -26
- data/lib/inspec/ui.rb +0 -213
- data/lib/inspec/ui_table_helper.rb +0 -12
- data/lib/inspec/utils/command_wrapper.rb +0 -23
- data/lib/inspec/utils/convert.rb +0 -8
- data/lib/inspec/utils/database_helpers.rb +0 -75
- data/lib/inspec/utils/deprecation.rb +0 -6
- data/lib/inspec/utils/deprecation/config_file.rb +0 -109
- data/lib/inspec/utils/deprecation/deprecator.rb +0 -118
- data/lib/inspec/utils/deprecation/errors.rb +0 -14
- data/lib/inspec/utils/deprecation/global_method.rb +0 -9
- data/lib/inspec/utils/enumerable_delegation.rb +0 -7
- data/lib/inspec/utils/erlang_parser.rb +0 -190
- data/lib/inspec/utils/file_reader.rb +0 -24
- data/lib/inspec/utils/filter.rb +0 -461
- data/lib/inspec/utils/filter_array.rb +0 -25
- data/lib/inspec/utils/find_files.rb +0 -44
- data/lib/inspec/utils/hash.rb +0 -37
- data/lib/inspec/utils/json_log.rb +0 -15
- data/lib/inspec/utils/modulator.rb +0 -9
- data/lib/inspec/utils/nginx_parser.rb +0 -101
- data/lib/inspec/utils/object_traversal.rb +0 -47
- data/lib/inspec/utils/parser.rb +0 -277
- data/lib/inspec/utils/pkey_reader.rb +0 -17
- data/lib/inspec/utils/simpleconfig.rb +0 -121
- data/lib/inspec/utils/spdx.rb +0 -10
- data/lib/inspec/utils/spdx.txt +0 -383
- data/lib/inspec/utils/telemetry.rb +0 -3
- data/lib/inspec/utils/telemetry/collector.rb +0 -81
- data/lib/inspec/utils/telemetry/data_series.rb +0 -44
- data/lib/inspec/utils/telemetry/global_methods.rb +0 -22
- data/lib/inspec/version.rb +0 -3
- data/lib/matchers/matchers.rb +0 -341
- data/lib/plugins/README.md +0 -16
- data/lib/plugins/inspec-artifact/lib/inspec-artifact.rb +0 -12
- data/lib/plugins/inspec-artifact/lib/inspec-artifact/base.rb +0 -170
- data/lib/plugins/inspec-artifact/lib/inspec-artifact/cli.rb +0 -116
- data/lib/plugins/inspec-artifact/test/functional/inspec_artifact_test.rb +0 -50
- data/lib/plugins/inspec-compliance/README.md +0 -207
- data/lib/plugins/inspec-compliance/lib/inspec-compliance.rb +0 -12
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/api.rb +0 -362
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/api/login.rb +0 -198
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/cli.rb +0 -269
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/configuration.rb +0 -103
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/http.rb +0 -117
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/images/cc-token.png +0 -0
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/support.rb +0 -34
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/target.rb +0 -146
- data/lib/plugins/inspec-compliance/test/functional/inspec_compliance_test.rb +0 -53
- data/lib/plugins/inspec-compliance/test/integration/default/cli.rb +0 -91
- data/lib/plugins/inspec-compliance/test/unit/api/login_test.rb +0 -190
- data/lib/plugins/inspec-compliance/test/unit/api_test.rb +0 -386
- data/lib/plugins/inspec-compliance/test/unit/target_test.rb +0 -155
- data/lib/plugins/inspec-habitat/Berksfile +0 -5
- data/lib/plugins/inspec-habitat/README.md +0 -150
- data/lib/plugins/inspec-habitat/kitchen.yml +0 -28
- data/lib/plugins/inspec-habitat/lib/inspec-habitat.rb +0 -11
- data/lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb +0 -41
- data/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb +0 -265
- data/lib/plugins/inspec-habitat/templates/habitat/plan.sh.erb +0 -6
- data/lib/plugins/inspec-habitat/test/cookbooks/inspec_habitat_fixture/Berksfile +0 -2
- data/lib/plugins/inspec-habitat/test/cookbooks/inspec_habitat_fixture/README.md +0 -3
- data/lib/plugins/inspec-habitat/test/cookbooks/inspec_habitat_fixture/files/hab_setup.exp +0 -28
- data/lib/plugins/inspec-habitat/test/cookbooks/inspec_habitat_fixture/metadata.rb +0 -9
- data/lib/plugins/inspec-habitat/test/cookbooks/inspec_habitat_fixture/recipes/default.rb +0 -61
- data/lib/plugins/inspec-habitat/test/functional/inspec_habitat_test.rb +0 -34
- data/lib/plugins/inspec-habitat/test/integration/default/inspec_habitat/README.md +0 -3
- data/lib/plugins/inspec-habitat/test/integration/default/inspec_habitat/controls/inspec_habitat.rb +0 -40
- data/lib/plugins/inspec-habitat/test/integration/default/inspec_habitat/inspec.yml +0 -10
- data/lib/plugins/inspec-habitat/test/support/example_profile/README.md +0 -3
- data/lib/plugins/inspec-habitat/test/support/example_profile/controls/example.rb +0 -7
- data/lib/plugins/inspec-habitat/test/support/example_profile/inspec.yml +0 -10
- data/lib/plugins/inspec-habitat/test/unit/profile_test.rb +0 -242
- data/lib/plugins/inspec-init/README.md +0 -31
- data/lib/plugins/inspec-init/lib/inspec-init.rb +0 -12
- data/lib/plugins/inspec-init/lib/inspec-init/cli.rb +0 -15
- data/lib/plugins/inspec-init/lib/inspec-init/cli_plugin.rb +0 -243
- data/lib/plugins/inspec-init/lib/inspec-init/cli_profile.rb +0 -47
- data/lib/plugins/inspec-init/lib/inspec-init/renderer.rb +0 -97
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/Gemfile +0 -11
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/LICENSE +0 -2
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/README.md +0 -28
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/Rakefile +0 -40
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template.rb +0 -14
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/cli_command.rb +0 -62
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/plugin.rb +0 -53
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/version.rb +0 -8
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/fixtures/README.md +0 -24
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/functional/README.md +0 -12
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/functional/inspec_plugin_template_test.rb +0 -110
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/helper.rb +0 -24
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/unit/README.md +0 -17
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/unit/cli_args_test.rb +0 -67
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/test/unit/plugin_def_test.rb +0 -51
- data/lib/plugins/inspec-init/templates/profiles/aws/libraries/.gitkeep +0 -0
- data/lib/plugins/inspec-init/templates/profiles/azure/libraries/.gitkeep +0 -0
- data/lib/plugins/inspec-init/templates/profiles/gcp/libraries/.gitkeep +0 -0
- data/lib/plugins/inspec-init/templates/profiles/os/README.md +0 -3
- data/lib/plugins/inspec-init/templates/profiles/os/controls/example.rb +0 -18
- data/lib/plugins/inspec-init/templates/profiles/os/inspec.yml +0 -10
- data/lib/plugins/inspec-init/templates/profiles/os/libraries/.gitkeep +0 -0
- data/lib/plugins/inspec-init/test/functional/inspec_init_plugin_test.rb +0 -184
- data/lib/plugins/inspec-init/test/functional/inspec_init_profile_test.rb +0 -121
- data/lib/plugins/inspec-plugin-manager-cli/README.md +0 -6
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli.rb +0 -17
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli/cli_command.rb +0 -518
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli/plugin.rb +0 -12
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/config_dirs/empty/.gitkeep +0 -0
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/plugins/inspec-egg-white-omelette/lib/inspec-egg-white-omelette.rb +0 -2
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/plugins/inspec-egg-white-omelette/lib/inspec-egg-white-omelette/.gitkeep +0 -0
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/plugins/inspec-wrong-structure/.gitkeep +0 -0
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/plugins/wrong-name/lib/wrong-name.rb +0 -1
- data/lib/plugins/inspec-plugin-manager-cli/test/fixtures/plugins/wrong-name/lib/wrong-name/.gitkeep +0 -0
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/help_test.rb +0 -23
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/helper.rb +0 -62
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/install_test.rb +0 -368
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/list_test.rb +0 -101
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/search_test.rb +0 -129
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/uninstall_test.rb +0 -63
- data/lib/plugins/inspec-plugin-manager-cli/test/functional/update_test.rb +0 -84
- data/lib/plugins/inspec-plugin-manager-cli/test/unit/cli_args_test.rb +0 -77
- data/lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb +0 -39
- data/lib/plugins/shared/core_plugin_test_helper.rb +0 -153
- data/lib/plugins/things-for-train-integration.rb +0 -14
- data/lib/source_readers/flat.rb +0 -36
- data/lib/source_readers/inspec.rb +0 -66
@@ -1,111 +0,0 @@
|
|
1
|
-
# copyright: 2017, Chef Software, Inc. <legal@chef.io>
|
2
|
-
|
3
|
-
require "inspec/utils/filter"
|
4
|
-
require "inspec/resources/command"
|
5
|
-
|
6
|
-
module Inspec::Resources
|
7
|
-
class Packages < Inspec.resource(1)
|
8
|
-
name "packages"
|
9
|
-
supports platform: "unix"
|
10
|
-
desc "Use the packages InSpec audit resource to test properties for multiple packages installed on the system"
|
11
|
-
example <<~EXAMPLE
|
12
|
-
describe packages(/xserver-xorg.*/) do
|
13
|
-
its('entries') { should be_empty }
|
14
|
-
end
|
15
|
-
describe packages('vim').entries.length do
|
16
|
-
it { should be > 1 }
|
17
|
-
end
|
18
|
-
describe packages(/vi.+/).where { status != 'installed' } do
|
19
|
-
its('statuses') { should be_empty }
|
20
|
-
end
|
21
|
-
EXAMPLE
|
22
|
-
|
23
|
-
def initialize(pattern)
|
24
|
-
os = inspec.os
|
25
|
-
if os.debian?
|
26
|
-
@pkgs = Debs.new(inspec)
|
27
|
-
elsif os.redhat? || %w{suse amazon fedora}.include?(os[:family])
|
28
|
-
@pkgs = Rpms.new(inspec)
|
29
|
-
else
|
30
|
-
return skip_resource "The packages resource is not yet supported on OS #{inspec.os.name}"
|
31
|
-
end
|
32
|
-
|
33
|
-
@pattern = pattern_regexp(pattern)
|
34
|
-
all_pkgs = @pkgs.build_package_list
|
35
|
-
@list = all_pkgs.find_all do |hm|
|
36
|
-
hm[:name] =~ @pattern
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def to_s
|
41
|
-
"Packages #{@pattern.class == String ? @pattern : @pattern.inspect}"
|
42
|
-
end
|
43
|
-
|
44
|
-
filter = FilterTable.create
|
45
|
-
filter.register_column(:statuses, field: "status", style: :simple)
|
46
|
-
.register_column(:names, field: "name")
|
47
|
-
.register_column(:versions, field: "version")
|
48
|
-
.register_column(:architectures, field: "architecture")
|
49
|
-
.install_filter_methods_on_resource(self, :filtered_packages)
|
50
|
-
|
51
|
-
private
|
52
|
-
|
53
|
-
def pattern_regexp(p)
|
54
|
-
if p.class == String
|
55
|
-
Regexp.new(Regexp.escape(p))
|
56
|
-
elsif p.class == Regexp
|
57
|
-
p
|
58
|
-
else
|
59
|
-
raise 'Invalid name argument to packages resource, please use a "string" or /regexp/'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
def filtered_packages
|
64
|
-
warn "The packages resource is not yet supported on OS #{inspec.os.name}" if resource_skipped?
|
65
|
-
@list
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
class PkgsManagement
|
70
|
-
PackageStruct = Struct.new(:status, :name, :version, :architecture)
|
71
|
-
attr_reader :inspec
|
72
|
-
def initialize(inspec)
|
73
|
-
@inspec = inspec
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
# Debian / Ubuntu
|
78
|
-
class Debs < PkgsManagement
|
79
|
-
def build_package_list
|
80
|
-
# use two spaces as delimiter in case any of the fields has a space in it
|
81
|
-
command = "dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version} ${Architecture}\\n'"
|
82
|
-
cmd = inspec.command(command)
|
83
|
-
all = cmd.stdout.split("\n")
|
84
|
-
return [] if all.nil?
|
85
|
-
|
86
|
-
all.map do |m|
|
87
|
-
a = m.split(/ {2,}/)
|
88
|
-
a[0] = "installed" if a[0] =~ /^.i/
|
89
|
-
a[2] = a[2].split(":").last
|
90
|
-
PackageStruct.new(*a)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
# RedHat family
|
96
|
-
class Rpms < PkgsManagement
|
97
|
-
def build_package_list
|
98
|
-
# use two spaces as delimiter in case any of the fields has a space in it
|
99
|
-
command = "rpm -qa --queryformat '%{NAME} %{VERSION}-%{RELEASE} %{ARCH}\\n'" # rubocop:disable Style/FormatStringToken
|
100
|
-
cmd = inspec.command(command)
|
101
|
-
all = cmd.stdout.split("\n")
|
102
|
-
return [] if all.nil?
|
103
|
-
|
104
|
-
all.map do |m|
|
105
|
-
a = m.split(" ")
|
106
|
-
a.unshift("installed")
|
107
|
-
PackageStruct.new(*a)
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
@@ -1,112 +0,0 @@
|
|
1
|
-
# copyright: 2015, Vulcano Security GmbH
|
2
|
-
|
3
|
-
# Usage example:
|
4
|
-
#
|
5
|
-
# audit = command('/sbin/auditctl -l').stdout
|
6
|
-
# options = {
|
7
|
-
# assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
8
|
-
# multiple_values: true
|
9
|
-
# }
|
10
|
-
# describe parse_config(audit, options ) do
|
11
|
-
|
12
|
-
require "inspec/utils/file_reader"
|
13
|
-
require "inspec/utils/simpleconfig"
|
14
|
-
|
15
|
-
module Inspec::Resources
|
16
|
-
class PConfig < Inspec.resource(1)
|
17
|
-
name "parse_config"
|
18
|
-
supports platform: "unix"
|
19
|
-
supports platform: "windows"
|
20
|
-
desc "Use the parse_config InSpec audit resource to test arbitrary configuration files."
|
21
|
-
example <<~EXAMPLE
|
22
|
-
output = command('some-command').stdout
|
23
|
-
describe parse_config(output, { data_config_option: value } ) do
|
24
|
-
its('setting') { should eq 1 }
|
25
|
-
end
|
26
|
-
|
27
|
-
output2 = command('curl http://127.0.0.1/php_status').stdout
|
28
|
-
# php status is in format 'key : value', and we do not allow for multiple values
|
29
|
-
options2 = {
|
30
|
-
assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
31
|
-
multiple_values: false
|
32
|
-
}
|
33
|
-
|
34
|
-
describe parse_config(output2, options2) do
|
35
|
-
its('pool') { should eq 'www'}
|
36
|
-
its('process manager') { should eq process_manager }
|
37
|
-
end
|
38
|
-
|
39
|
-
# getting specific key from the output above, convert it to integer and then compare
|
40
|
-
# make sure 'listen queue' is below 100
|
41
|
-
describe parse_config(output2, options2 ).params['listen queue'].to_i do
|
42
|
-
it { should be < 100 }
|
43
|
-
end
|
44
|
-
EXAMPLE
|
45
|
-
|
46
|
-
include FileReader
|
47
|
-
|
48
|
-
attr_reader :content
|
49
|
-
def initialize(content = nil, useropts = nil)
|
50
|
-
@opts = {}
|
51
|
-
@opts = useropts.dup unless useropts.nil?
|
52
|
-
@files_contents = {}
|
53
|
-
|
54
|
-
@content = content
|
55
|
-
read_params unless @content.nil?
|
56
|
-
end
|
57
|
-
|
58
|
-
def method_missing(name)
|
59
|
-
read_params[name.to_s]
|
60
|
-
end
|
61
|
-
|
62
|
-
def params(*opts)
|
63
|
-
opts.inject(read_params) do |res, nxt|
|
64
|
-
res.respond_to?(:key) ? res[nxt] : nil
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
def to_s
|
69
|
-
"Parse Config #{@conf_path}"
|
70
|
-
end
|
71
|
-
|
72
|
-
private
|
73
|
-
|
74
|
-
def parse_file(conf_path)
|
75
|
-
@conf_path = conf_path
|
76
|
-
@content = read_file(conf_path).to_s
|
77
|
-
|
78
|
-
read_params
|
79
|
-
end
|
80
|
-
|
81
|
-
def read_file(path)
|
82
|
-
@files_contents[path] ||= read_file_content(path)
|
83
|
-
end
|
84
|
-
|
85
|
-
def read_params
|
86
|
-
@params ||= if content.nil?
|
87
|
-
{}
|
88
|
-
else
|
89
|
-
SimpleConfig.new(content, @opts).params
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
class PConfigFile < PConfig
|
95
|
-
name "parse_config_file"
|
96
|
-
desc "Use the parse_config_file InSpec resource to test arbitrary configuration files. It works identically to parse_config. Instead of using a command output, this resource works with files."
|
97
|
-
example <<~EXAMPLE
|
98
|
-
describe parse_config_file('/path/to/file') do
|
99
|
-
its('setting') { should eq 1 }
|
100
|
-
end
|
101
|
-
EXAMPLE
|
102
|
-
|
103
|
-
def initialize(path, opts = nil)
|
104
|
-
super(nil, opts)
|
105
|
-
parse_file(path)
|
106
|
-
end
|
107
|
-
|
108
|
-
def to_s
|
109
|
-
"Parse Config File #{@conf_path}"
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# copyright: 2015, Vulcano Security GmbH
|
2
|
-
|
3
|
-
# The file format consists of
|
4
|
-
# - username
|
5
|
-
# - password
|
6
|
-
# - userid
|
7
|
-
# - groupid
|
8
|
-
# - user id info
|
9
|
-
# - home directory
|
10
|
-
# - command
|
11
|
-
|
12
|
-
require "inspec/utils/parser"
|
13
|
-
require "inspec/utils/filter"
|
14
|
-
require "inspec/utils/file_reader"
|
15
|
-
|
16
|
-
module Inspec::Resources
|
17
|
-
class Passwd < Inspec.resource(1)
|
18
|
-
name "passwd"
|
19
|
-
supports platform: "unix"
|
20
|
-
desc "Use the passwd InSpec audit resource to test the contents of /etc/passwd, which contains the following information for users that may log into the system and/or as users that own running processes."
|
21
|
-
example <<~EXAMPLE
|
22
|
-
describe passwd do
|
23
|
-
its('users') { should_not include 'forbidden_user' }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe passwd.uids(0) do
|
27
|
-
its('users') { should cmp 'root' }
|
28
|
-
end
|
29
|
-
|
30
|
-
describe passwd.shells(/nologin/) do
|
31
|
-
# find all users with a nologin shell
|
32
|
-
its('users') { should_not include 'my_login_user' }
|
33
|
-
end
|
34
|
-
EXAMPLE
|
35
|
-
|
36
|
-
include PasswdParser
|
37
|
-
include FileReader
|
38
|
-
|
39
|
-
attr_reader :params
|
40
|
-
attr_reader :content
|
41
|
-
attr_reader :lines
|
42
|
-
|
43
|
-
def initialize(path = nil, opts = nil)
|
44
|
-
opts ||= {}
|
45
|
-
@path = path || "/etc/passwd"
|
46
|
-
@content = opts[:content] || read_file_content(@path, allow_empty: true)
|
47
|
-
@lines = @content.to_s.split("\n")
|
48
|
-
@params = parse_passwd(@content)
|
49
|
-
end
|
50
|
-
|
51
|
-
filter = FilterTable.create
|
52
|
-
filter.register_column(:users, field: "user")
|
53
|
-
.register_column(:passwords, field: "password")
|
54
|
-
.register_column(:uids, field: "uid")
|
55
|
-
.register_column(:gids, field: "gid")
|
56
|
-
.register_column(:descs, field: "desc")
|
57
|
-
.register_column(:homes, field: "home")
|
58
|
-
.register_column(:shells, field: "shell")
|
59
|
-
|
60
|
-
# rebuild the passwd line from raw content
|
61
|
-
filter.register_custom_property(:content) do |t, _|
|
62
|
-
t.entries.map do |e|
|
63
|
-
[e.user, e.password, e.uid, e.gid, e.desc, e.home, e.shell].join(":")
|
64
|
-
end.join("\n")
|
65
|
-
end
|
66
|
-
|
67
|
-
filter.install_filter_methods_on_resource(self, :params)
|
68
|
-
|
69
|
-
def to_s
|
70
|
-
"/etc/passwd"
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
data/lib/inspec/resources/pip.rb
DELETED
@@ -1,132 +0,0 @@
|
|
1
|
-
require "inspec/resources/command"
|
2
|
-
require "inspec/utils/simpleconfig"
|
3
|
-
|
4
|
-
# Usage:
|
5
|
-
# describe pip('Jinja2') do
|
6
|
-
# it { should be_installed }
|
7
|
-
# end
|
8
|
-
|
9
|
-
module Inspec::Resources
|
10
|
-
class PipPackage < Inspec.resource(1)
|
11
|
-
name "pip"
|
12
|
-
supports platform: "unix"
|
13
|
-
supports platform: "windows"
|
14
|
-
desc "Use the pip InSpec audit resource to test packages that are installed using the pip installer."
|
15
|
-
example <<~EXAMPLE
|
16
|
-
describe pip('Jinja2') do
|
17
|
-
it { should be_installed }
|
18
|
-
end
|
19
|
-
|
20
|
-
describe pip('django', '/path/to/virtualenv/bin/pip') do
|
21
|
-
it { should be_installed }
|
22
|
-
its('version') { should eq('1.11.4')}
|
23
|
-
end
|
24
|
-
EXAMPLE
|
25
|
-
|
26
|
-
def initialize(package_name, pip_path = nil)
|
27
|
-
@package_name = package_name
|
28
|
-
@pip_cmd = pip_path || default_pip_path
|
29
|
-
|
30
|
-
return skip_resource "pip not found" if @pip_cmd.nil?
|
31
|
-
end
|
32
|
-
|
33
|
-
def info
|
34
|
-
return @info if defined?(@info)
|
35
|
-
|
36
|
-
@info = {}
|
37
|
-
@info[:type] = "pip"
|
38
|
-
return @info unless cmd_successful?
|
39
|
-
|
40
|
-
params = SimpleConfig.new(
|
41
|
-
cmd.stdout,
|
42
|
-
assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
|
43
|
-
multiple_values: false
|
44
|
-
).params
|
45
|
-
@info[:name] = params["Name"]
|
46
|
-
@info[:version] = params["Version"]
|
47
|
-
@info[:installed] = true
|
48
|
-
@info
|
49
|
-
end
|
50
|
-
|
51
|
-
def installed?
|
52
|
-
info[:installed] == true
|
53
|
-
end
|
54
|
-
|
55
|
-
def version
|
56
|
-
info[:version]
|
57
|
-
end
|
58
|
-
|
59
|
-
def to_s
|
60
|
-
"Pip Package #{@package_name}"
|
61
|
-
end
|
62
|
-
|
63
|
-
private
|
64
|
-
|
65
|
-
def cmd
|
66
|
-
@__cmd ||= inspec.command("#{@pip_cmd} show #{@package_name}")
|
67
|
-
end
|
68
|
-
|
69
|
-
def cmd_successful?
|
70
|
-
return true if cmd.exit_status == 0
|
71
|
-
|
72
|
-
if cmd.exit_status != 0
|
73
|
-
# If pip on windows is not the latest, it will create a stderr value along with stdout
|
74
|
-
# Example:
|
75
|
-
# stdout: "Name: Jinja2\r\nVersion: 2.10..."
|
76
|
-
# stderr: "You are using pip version 9.0.1, however version 9.0.3 is available..."
|
77
|
-
if inspec.os.windows? && !cmd.stdout.empty?
|
78
|
-
return true
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
false
|
83
|
-
end
|
84
|
-
|
85
|
-
# Paths of Python and Pip on windows
|
86
|
-
# {"Pip" => nil, "Python" => "/path/to/python"}
|
87
|
-
#
|
88
|
-
# @return [Hash] of windows_paths
|
89
|
-
def windows_paths
|
90
|
-
return @__windows_paths if @__windows_paths
|
91
|
-
|
92
|
-
cmd = inspec.command(
|
93
|
-
'New-Object -Type PSObject |
|
94
|
-
Add-Member -MemberType NoteProperty -Name Pip -Value (Invoke-Command -ScriptBlock {where.exe pip}) -PassThru |
|
95
|
-
Add-Member -MemberType NoteProperty -Name Python -Value (Invoke-Command -ScriptBlock {where.exe python}) -PassThru |
|
96
|
-
ConvertTo-Json'
|
97
|
-
)
|
98
|
-
|
99
|
-
@__windows_paths = JSON.parse(cmd.stdout)
|
100
|
-
end
|
101
|
-
|
102
|
-
# Default path of python pip installation
|
103
|
-
#
|
104
|
-
# @return [String] of python pip path
|
105
|
-
def default_pip_path
|
106
|
-
return "pip" unless inspec.os.windows?
|
107
|
-
|
108
|
-
# If python is not found, return with skip_resource
|
109
|
-
return skip_resource "python not found" if windows_paths["Python"].nil?
|
110
|
-
|
111
|
-
# Pip is not on the default path for Windows, therefore we do some logic
|
112
|
-
# to find the binary on Windows
|
113
|
-
begin
|
114
|
-
# use pip if it on system path
|
115
|
-
pipcmd = windows_paths["Pip"]
|
116
|
-
# calculate path on windows
|
117
|
-
if defined?(windows_paths["Python"]) && pipcmd.nil?
|
118
|
-
return nil if windows_paths["Pip"].nil?
|
119
|
-
|
120
|
-
pipdir = windows_paths["Python"].split('\\')
|
121
|
-
# remove python.exe
|
122
|
-
pipdir.pop
|
123
|
-
pipcmd = pipdir.push("Scripts").push("pip.exe").join("/")
|
124
|
-
end
|
125
|
-
rescue JSON::ParserError => _e
|
126
|
-
return nil
|
127
|
-
end
|
128
|
-
|
129
|
-
pipcmd
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|
@@ -1,112 +0,0 @@
|
|
1
|
-
require "inspec/resource"
|
2
|
-
|
3
|
-
module Inspec::Resources
|
4
|
-
class PlatformResource < Inspec.resource(1)
|
5
|
-
name "platform"
|
6
|
-
desc "Use the platform InSpec resource to test the platform on which the system is running."
|
7
|
-
example <<~EXAMPLE
|
8
|
-
describe platform do
|
9
|
-
its('name') { should eq 'redhat' }
|
10
|
-
end
|
11
|
-
|
12
|
-
describe platform do
|
13
|
-
it { should be_in_family('unix') }
|
14
|
-
end
|
15
|
-
EXAMPLE
|
16
|
-
|
17
|
-
def initialize
|
18
|
-
@platform = inspec.backend.platform
|
19
|
-
end
|
20
|
-
|
21
|
-
# add helper methods for easy access of properties
|
22
|
-
%w{family release arch}.each do |property|
|
23
|
-
define_method(property.to_sym) do
|
24
|
-
@platform[property]
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def families
|
29
|
-
@platform.family_hierarchy
|
30
|
-
end
|
31
|
-
|
32
|
-
def name
|
33
|
-
@platform.name
|
34
|
-
end
|
35
|
-
|
36
|
-
def [](key)
|
37
|
-
# convert string to symbol
|
38
|
-
key = key.to_sym if key.is_a? String
|
39
|
-
return name if key == :name
|
40
|
-
|
41
|
-
@platform[key]
|
42
|
-
end
|
43
|
-
|
44
|
-
def platform?(name)
|
45
|
-
@platform.name == name ||
|
46
|
-
@platform.family_hierarchy.include?(name)
|
47
|
-
end
|
48
|
-
|
49
|
-
def in_family?(family)
|
50
|
-
@platform.family_hierarchy.include?(family)
|
51
|
-
end
|
52
|
-
|
53
|
-
def params
|
54
|
-
h = {
|
55
|
-
name: name,
|
56
|
-
families: families,
|
57
|
-
release: release,
|
58
|
-
}
|
59
|
-
|
60
|
-
# Avoid adding Arch for APIs (not applicable)
|
61
|
-
unless in_family?("api")
|
62
|
-
h[:arch] = arch
|
63
|
-
end
|
64
|
-
|
65
|
-
h
|
66
|
-
end
|
67
|
-
|
68
|
-
def supported?(supports)
|
69
|
-
return true if supports.nil? || supports.empty?
|
70
|
-
|
71
|
-
status = true
|
72
|
-
supports.each do |support|
|
73
|
-
support.each do |k, v|
|
74
|
-
status =
|
75
|
-
case k
|
76
|
-
when :os_family, :"os-family", :platform_family, :"platform-family" then
|
77
|
-
in_family?(v)
|
78
|
-
when :os, :platform then
|
79
|
-
platform?(v)
|
80
|
-
when :os_name, :"os-name", :platform_name, :"platform-name" then
|
81
|
-
name == v
|
82
|
-
when :release then
|
83
|
-
check_release(v)
|
84
|
-
else
|
85
|
-
false
|
86
|
-
end
|
87
|
-
|
88
|
-
break if status == false
|
89
|
-
end
|
90
|
-
return true if status == true
|
91
|
-
end
|
92
|
-
|
93
|
-
status
|
94
|
-
end
|
95
|
-
|
96
|
-
def to_s
|
97
|
-
"Platform Detection"
|
98
|
-
end
|
99
|
-
|
100
|
-
private
|
101
|
-
|
102
|
-
def check_release(value)
|
103
|
-
# allow wild card matching
|
104
|
-
if value.include?("*")
|
105
|
-
cleaned = Regexp.escape(value).gsub('\*', ".*?")
|
106
|
-
!(release =~ /#{cleaned}/).nil?
|
107
|
-
else
|
108
|
-
release == value
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|