sydep 0.1.1 documentation

sydep module

«  Quickstart   ::   Contents

sydep module

sydep.copy_config()[source]

Copy sample config file into current directory.

sydep.load_config()[source]

Load config from current directory.

sydep.main(args)[source]

Init function of script. Called by sydep.

Parameters:args – dictionary of arguments from command line (got by docopt)
sydep.pull(config, args)[source]

Update local files from server - overwrite just existing files, don’t create new ones.

Parameters:
  • config – instance of ConfigParser
  • args – dictionary of arguments from command line (got by docopt)
sydep.push(config, args)[source]

Push local files to remote server

Parameters:
  • config – instance of ConfigParser
  • args – dictionary of arguments from command line (got by docopt)
sydep.run_cmd(cmd, config, args)[source]

Run given command after inserting variables.

Parameters:
  • cmd – input command
  • config – instance of ConfigParser
  • args – dictionary of arguments from command line (got by docopt)

«  Quickstart   ::   Contents