Closed (outdated)
Project:
DataSync
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2009 at 13:53 UTC
Updated:
26 Sep 2021 at 19:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andrewlevine commentedDefinitely interested. The best way to do this would be to make a datasync_drush module that depends on DataSync and that can be disabled independently of the main datasync module. It would be your choice to decide whether it should depend or integrate with datasync_scheduler.
You actually should probably make a separate project for this (like datasync_feedapi) because I don't have enough experience with drush to maintain this in the long term. I will point to your project from the main datasync page and offer any help you need.
You should look at the job class for a bunch of methods you could implement: add, advance_phase, complete_phase, do_phase, fail_phase, postpone_phase, remove, take. I guess it depends if you want it to integrate deeply with datasync_scheduler or just datasync.
Let me know how it goes.
Comment #2
pounardDrush integration is only one .inc file, just see what I started. I think it should be attached to your project.
I can maintain it until I work with DataSync, just enough time for other people to get interested.
See attached file, renamed .txt because of ugly extension limitation.
Comment #3
pounardHo, and right now the code is quite basic, it does not handle much, just what I needed! :D
I will complete it as much as time allows me to.
I'm not into supporting scheduler right now, but I think I will pretty soon because I'll have to schedule daily tasks.
Comment #4
andrewlevine commentedI would really prefer if this was a separate module (even if it is included in the main datasync package). That way people can feel comfortable that it will not be used at all if it is unchecked on the modules page (I did the same thing for datasync_scheduler and datasync_cronalt). Can you turn this into a datasync_drush.module file? I believe all you'd have to do is rename the file and change every instance of datasync_ to datasync_drush_
Comment #5
pounardOk, can do it. But there is no need to create a module, it will only be a new function namespace within the file, Drush integration does not need to be into a module (in fact, it never is into a module).
Comment #6
pounardOk, can do it. But there is no need to create a module, it will only be a new function namespace within the file, Drush integration does not need to be into a module (in fact, it never is into a module).
Comment #7
avpadernoI am closing this issue, as Drupal 6 is now not supported.