class Pfm::Command::ValidatorCommands::Infrastructure

def run

def run
  @config[:validator_name] = 'infrastructure'
  read_and_validate_params
  setup_artifacts_dirs
  if params_valid?
    deploy_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