threecolor.tools package¶
Submodules¶
threecolor.tools.misc module¶
-
threecolor.tools.misc.make_home(root_path)¶ This function looks for the user’s 3color-Press folder (instance folder) and creates one if it doesn’t exist. Currently not in use
-
threecolor.tools.misc.open_browser()¶ Try’s to open system’s file browser.
Currently the command line tool uses click.launch but this may be used for future admin interface
-
threecolor.tools.misc.page_dir(dirname)¶ used in command line tools to determine path for content type
threecolor.tools.pagecreator module¶
threecolor.tools.publish module¶
-
threecolor.tools.publish.archive()¶ Makes a local tar.gz file
-
threecolor.tools.publish.git_deploy()¶ simply changes the directory to your build directory and calls git commits to add all files, commit all changes with commit message updated and then push your commit, then change back to your project directory
-
threecolor.tools.publish.publish(pubmethod='local')¶ Main function to pubish site
-
threecolor.tools.publish.rsync()¶ Uses a wrapper to call rsync to deploy your site with the rsync tool this has the delete option which will delete any remote files that are not in your local build folder
-
threecolor.tools.publish.sftp()¶ archives then uploads site via fabric sftp and then unarchives on server. The remote folder for your site will be 3colorsite and contents will be deleted if the directory exists remotely therefore ensuring to remove changes before the upload
Module contents¶
Tools for 3color Press