class Pfm::Command::Build

def run(params)

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