class SafeDb::Refresh

The refresh use case commits any changes made to the safe book into master. This is straightforward if the master's state has not been forwarded by a ckeckin from another (shell) branch.

master and branch not in sync

Commits cannot occur when the master's state has been moved forward by another branch commit. In these cases one needs to use the below sequence.

refresh | merge up mechanics

The mechanics of a simple in-sync refresh is to

Public Instance Methods

execute() click to toggle source

The refresh use case commits any changes made to the safe book into master. This is straightforward if the master's state has not been forwarded by a ckeckin from another (shell) branch.

# File lib/controller/book/refresh.rb, line 34
def execute

  puts ""
  puts " == Birth Day := #{@book.init_time()}\n"
  puts " == Book Name := #{@book.book_name()} [#{@book.book_id}]\n"
  puts " == Book Mark := #{@book.get_open_chapter_name()}/#{@book.get_open_verse_name()}\n" if @book.is_opened?()
  puts ""

  EvolveState.refresh( @book )
  EvolveState.copy_commit_id_to_branch( @book )

  puts "Refresh from master to branch was successful.\n"
  puts ""


end