class Middleman::Cli::Build

def build

Returns:
  • (void) -
def build
  if !ENV["MM_ROOT"]
    raise Thor::Error, "Error: Could not find a Middleman project config, perhaps you are in the wrong folder?"
  end
  
  self.class.shared_instance(options["verbose"] || false)
  
  self.class.shared_rack
  opts = {}
  opts[:glob]  = options["glob"]  if options.has_key?("glob")
  opts[:clean] = options["clean"] if options.has_key?("clean")
  action GlobAction.new(self, opts)
  self.class.shared_instance.run_hook :after_build, self
end