Sha256: dc1ea301668bbddd98903fe6c627e274b4b02401584274373f21f75edf30967d
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
unless config.plugins[:neos].nil? || config.plugins[:neos][:sync].nil? namespace :sync do namespace :neos do config.plugins[:neos][:sync].each do |name, sync_config| desc "Sync Neos database and assets from #{name} system" task name do to_environment = sync_config[:to].split(':').first database_task = sync_config[:database_task] || "update:database:#{to_environment}:from_#{name}" Rake::Task[database_task].invoke if Rake::Task.task_defined?(database_task) config.set *sync_config[:from].split(':').map(&:to_sym) from_hostname = config[:hostname] current = config[:type] == 'rsync_with_versions' ? '/current' : '' from_path = "#{config[:remote_path]}#{current}/Data/Persistent/Resources" config.set *sync_config[:to].split(':').map(&:to_sym) info 'Syncing assets...' remote_shell.run "rsync -aq #{from_hostname}:#{from_path} Data/Persistent" info 'Publishing assets...' remote_shell.run './flow resource:publish' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fulmar-plugin-neos-1.0.1 | lib/fulmar/plugin/neos/rake/neos.rake |