Skip to content

Commit

Permalink
Merge branch 'release/2.0b2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwsmith committed Aug 28, 2016
2 parents 6d3517d + 74509f7 commit 20740ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 140 deletions.
2 changes: 1 addition & 1 deletion conf/chswx.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
date_default_timezone_set('UTC');

// Use error logging to syslog
ini_set('error_log','syslog');
//ini_set('error_log','syslog');

//
// VTEC phenomena codes.
Expand Down
130 changes: 0 additions & 130 deletions conf/pqact-chswx.conf

This file was deleted.

15 changes: 6 additions & 9 deletions src/ingestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@
// Handle to DB
$db = new ProductStorage;

// Get the file path from the command line.
$file_path = $argv[1];
Utils::log("Ingest has begun. Filename: " . $file_path);
// Bring in the file
if(file_exists($file_path)) {
$m_text = file_get_contents($file_path);
} else {
Utils::exit_with_error("File $file_path not found. Terminating ingest.\n");
}
// #10: Pipe in products from the LDM vs. reading in written files.
// This gives us a level of concurrence that we wouldn't otherwise have...
// ...and sets us up to do longer-running piped processes down the road (#26)
Utils::log("Ingest has begun from STDIN.");
// Pipe in text from STDIN
$m_text = stream_get_contents(STDIN);

// Send to the factory to parse the product.
$product_obj = NWSProductFactory::get_product(Utils::sanitize($m_text));
Expand Down

0 comments on commit 20740ca

Please sign in to comment.