Sha256: 34d1413e621452df535ad5be576e1219b34af91e53047a9f6930525f134c5f0d

Contents?: true

Size: 345 Bytes

Versions: 10

Compression:

Stored size: 345 Bytes

Contents

class Step
  def progress_bar(msg = "Progress", options = nil)
    if Hash === msg and options.nil?
      options = msg
      msg = nil
    end
    options = {} if options.nil?

    max = options[:max]
    Open.mkdir files_dir
    Log::ProgressBar.new_bar(max, {:desc => msg, :file => (@exec ? nil : file(:progress))}.merge(options))
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scout-gear-10.4.0 lib/scout/workflow/step/progress.rb
scout-gear-10.3.0 lib/scout/workflow/step/progress.rb
scout-gear-10.2.0 lib/scout/workflow/step/progress.rb
scout-gear-10.1.0 lib/scout/workflow/step/progress.rb
scout-gear-10.0.1 lib/scout/workflow/step/progress.rb
scout-gear-9.1.0 lib/scout/workflow/step/progress.rb
scout-gear-9.0.0 lib/scout/workflow/step/progress.rb
scout-gear-8.1.0 lib/scout/workflow/step/progress.rb
scout-gear-8.0.0 lib/scout/workflow/step/progress.rb
scout-gear-7.3.0 lib/scout/workflow/step/progress.rb