Method: MGit::OperationProgressManager.trap_into_progress

Defined in:
lib/m-git/foundation/operation_progress_manager.rb

.trap_into_progress(root, context) ⇒ Object

进入中间态

Parameters:



74
75
76
77
78
79
80
81
82
# File 'lib/m-git/foundation/operation_progress_manager.rb', line 74

def trap_into_progress(root, context)
  begin
    MGitConfig.update(root) { |config|
      config[context.type] = context.serialize
    }
  rescue Error => e
    Output.puts_fail_message(e.msg)
  end
end