Class: GDK::Command::MeasureBase

Inherits:
BaseCommand show all
Defined in:
lib/gdk/command/measure_base.rb

Direct Known Subclasses

MeasureUrl, MeasureWorkflow

Constant Summary collapse

SITESPEED_DOCKER_TAG =
'29.5.0'

Instance Attribute Summary

Attributes inherited from BaseCommand

#stderr, #stdout

Instance Method Summary collapse

Methods inherited from BaseCommand

#config, #display_help_message, #help, #initialize, #print_help, #print_ready_message, #ready_messages, validate_config?

Constructor Details

This class inherits a constructor from GDK::Command::BaseCommand

Instance Method Details

#run(_ = []) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/gdk/command/measure_base.rb', line 11

def run(_ = [])
  check!

  if run_sitespeed
    open_report

    true
  else
    GDK::Output.warn('sitespeed failed to complete.')

    false
  end
end