Class: BuildTool::BuildSystem::Progressbar

Inherits:
ProgressbarBase show all
Defined in:
lib/build-tool/build-system/cmake.rb

Instance Method Summary collapse

Methods inherited from ProgressbarBase

#write

Methods inherited from MJ::Logging::Progressbar

#initialize

Constructor Details

This class inherits a constructor from MJ::Logging::Progressbar

Instance Method Details

#grep_progress(message) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/build-tool/build-system/cmake.rb', line 11

def grep_progress( message )

    match = /^\[ *(\d+)%\]/.match( message )
    if match and not @pbar.nil?
        # puts match[ 1 ]
        @pbar.set( match[ 1 ].to_i )
    end

end