Sha256: f6bf7455cca10f7609ccf5a006990c88e313274526d8db2dc0a864728687ad69
Contents?: true
Size: 733 Bytes
Versions: 3
Compression:
Stored size: 733 Bytes
Contents
relevant_options = [:rsync, :local_path, :remote_path, :host, :hostname, :shared, :templates, :ssh_config, :type] relevant_options.each do |option| target_test "empty configuration settings #{option}" do |config| if config.key?(option) && config[option].nil? next { severity: :warning, message: "config setting '#{option}' is set to nil/null, this might overwrite default settings" } end end end target_test 'test if at least one shared directory exists' do |config| if config[:type] == 'rsync_with_versions' && (config[:shared].nil? || config[:shared].empty?) next { severity: warning, message: 'config does not contain a shared directory for versioning' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fulmar-2.1.2 | lib/fulmar/domain/service/config_tests/misc.rb |
fulmar-2.1.1 | lib/fulmar/domain/service/config_tests/misc.rb |
fulmar-2.1.0 | lib/fulmar/domain/service/config_tests/misc.rb |