class SafeDb::Push
A safe push will save the state of the local safe database in a backend location (currently only a Git
repository).
This class does not require the user to be logged into a book. Naturally it expects safe remote –provision to have been called which creates the remote backend and then sets the git remote origin urls for fetch and push.
Public Instance Methods
execute()
click to toggle source
Execute the business of pushing to a remote safe backend repository.
# File lib/controller/db/push.rb, line 16 def execute() # Only required when git pulling on a machine for # the very first time. This is used to grab the # github access token and repository user and repository # name for creating the push origin url. # ---------------------------------------------------------- # open_remote_backend_location() # ---------------------------------------------------------- puts "" puts "Pushing safe commits to the backend repository." puts "" GitFlow.push( Indices::MASTER_CRYPTS_FOLDER_PATH ) puts "" end