Sha256: 004023c633e0e78b9d29e07aab92450dcc268220741e7f75fb80712db6324612

Contents?: true

Size: 472 Bytes

Versions: 7

Compression:

Stored size: 472 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

7 entries across 7 versions & 1 rubygems

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