Communication through Fabric¶
Functions for using fabric
Abed uses Fabric to synchronize data to and from the compute cluster. The
various functions that Abed needs are defined here. A helper class is defined
in fab_util, which is used to define the Fabric context environment that
is used for the commands.
-
abed.fab.build_remote()[source]¶ Runs the build command remotely if the program requires compilation
-
abed.fab.init_data()[source]¶ Push the data to the remote server
This function is used to synchronize the
DATADIRdirectory to the compute cluster. This is done by first locally compressing the entire directory as a tar file, then syncing it to adatasetsdirectory in the remote project path, and unpacking it there. The path where the unpacked dataset is located is stored in theMyFabricclass.