lib/docker-sync/sync_strategy/unison.rb in docker-sync-0.7.2 vs lib/docker-sync/sync_strategy/unison.rb in docker-sync-1.0.0
- old
+ new
@@ -17,14 +17,10 @@
UNISON_CONTAINER_PORT = '5000'.freeze
def initialize(sync_name, options)
@options = options
@sync_name = sync_name
# if a custom image is set, apply it
- @docker_image = if @options.key?('image')
- @options['image']
- else
- 'eugenmayer/unison:2.51.3-4.12.0-AMD64'
- end
+ @docker_image = @options.key?('image') ? @options['image'] : 'ghcr.io/eugenmayer/unison:2.52.1-4.12.0'
begin
Dependencies::Unison.ensure!
Dependencies::Unox.ensure! if Environment.mac?
rescue StandardError => e
say_status 'error', "#{@sync_name} has been configured to sync with unison, but no unison available", :red