Sha256: 30cb53d543eaa6e569bc99ed529dedc98a9bf345e2e3cf727698cd69dd8d47c7

Contents?: true

Size: 716 Bytes

Versions: 7

Compression:

Stored size: 716 Bytes

Contents

relevant_options = %i[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

7 entries across 7 versions & 1 rubygems

Version Path
fulmar-2.2.6 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.5 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.4 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.3 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.2 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.1 lib/fulmar/domain/service/config_tests/misc.rb
fulmar-2.2.0 lib/fulmar/domain/service/config_tests/misc.rb