class Pfm::Command::ValidatorCommands::ServerBuild

def run

def run
  read_and_validate_params
  setup_artifacts_dirs
  if params_valid?
    build_setup
    validate
    # @workspace.cleanup causing bundler issues
    0
  else
    errors.each { |error| err("Error: #{error}") }
    parse_options(params)
    msg(opt_parser)
    1
  end
rescue ValidationError => e
  err("ERROR: #{e}")
  1
end