Sha256: 8f7fdb2598f81c4ea01408d87e88a76b9db594b28a99cfcdb63331cc3c952889

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

target_test 'local path exists' do |config|
  if config[:local_path] && !File.exist?(config[:local_path])
    next {
      severity: :warning,
      message: "local_path does not exist (#{config[:local_path]})"
    }
  end
end

target_test 'remote_path is set' do |config|
  types = %w(rsync rsync_with_version)
  if types.include?(config[:type]) && config[:remote_path].blank?
    next {severity: :error, message: 'config is missing a remote path for rsync'}
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fulmar-2.1.2 lib/fulmar/domain/service/config_tests/paths.rb
fulmar-2.1.1 lib/fulmar/domain/service/config_tests/paths.rb
fulmar-2.1.0 lib/fulmar/domain/service/config_tests/paths.rb
fulmar-2.0.2 lib/fulmar/domain/service/config_tests/paths.rb
fulmar-2.0.1 lib/fulmar/domain/service/config_tests/paths.rb
fulmar-2.0.0 lib/fulmar/domain/service/config_tests/paths.rb