Permalink
Browse files

Renamed path helper to path utility

  • Loading branch information...
1 parent 3d7890b commit bb11b7b3c5519c1ad18b3f93a0a3497774261791 @o committed Mar 8, 2012
View
3 lib/Heatbeat/Autoloader.php
@@ -32,8 +32,7 @@
* @package Heatbeat
* @author Osman Ungur <osmanungur@gmail.com>
*/
-use Symfony\Component\ClassLoader\UniversalClassLoader,
- Heatbeat\Helper\PathHelper;
+use Symfony\Component\ClassLoader\UniversalClassLoader;
class Autoloader {
View
4 lib/Heatbeat/Cli/Command/CreateCommand.php
@@ -37,7 +37,7 @@
Heatbeat\Command\RRDTool\CreateCommand as RRDCreate,
Heatbeat\Executor\Executor,
Heatbeat\Exception\SourceException,
- Heatbeat\Helper\PathHelper;
+ Heatbeat\Utility\PathUtility;
/**
* Callback for CLI Tool create command
@@ -62,7 +62,7 @@ public function configure() {
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output) {
- $pathHelper = new PathHelper();
+ $pathHelper = new PathUtility();
foreach ($this->getConfig()->getGraphEntities() as $entity) {
try {
if ($entity->offsetGet('enabled') === false)
View
4 lib/Heatbeat/Cli/Command/GraphCommand.php
@@ -34,7 +34,7 @@
Heatbeat\Command\RRDTool\RRDToolCommand as RRDTool,
Heatbeat\Command\RRDTool\GraphCommand as RRDGraph,
Heatbeat\Source\SourceException,
- Heatbeat\Helper\PathHelper;
+ Heatbeat\Utility\PathUtility;
/**
* Callback for CLI Tool graph command
@@ -58,7 +58,7 @@ public function configure() {
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output) {
- $pathHelper = new PathHelper();
+ $pathHelper = new PathUtility();
foreach ($this->getConfig()->getGraphEntities() as $entity) {
try {
if ($entity->offsetGet('enabled') === false)
View
4 lib/Heatbeat/Cli/Command/UpdateCommand.php
@@ -35,7 +35,7 @@
Heatbeat\Command\RRDTool\UpdateCommand as RRDUpdate,
Heatbeat\InputOutput\SourceInput as Input,
Heatbeat\Source\SourceException,
- Heatbeat\Helper\PathHelper;
+ Heatbeat\Utility\PathUtility;
/**
* Callback for CLI Tool update command
@@ -60,7 +60,7 @@ public function configure() {
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output) {
- $pathHelper = new PathHelper();
+ $pathHelper = new PathUtility();
foreach ($this->getConfig()->getGraphEntities() as $entity) {
try {
if ($entity->offsetGet('enabled') === false)
View
4 lib/Heatbeat/Log/Logger.php
@@ -25,7 +25,7 @@
namespace Heatbeat\Log;
-use Heatbeat\Helper\PathHelper;
+use Heatbeat\Utility\PathUtility;
/**
* Class for logging Heatbeat events/errors
@@ -61,7 +61,7 @@ public function setMessage($message) {
* @throws LoggingException
*/
public function log() {
- $pathHelper = new PathHelper();
+ $pathHelper = new PathUtility();
if (is_writable($pathHelper->getFolderPath('logs'))) {
return file_put_contents($pathHelper->getLogFilePath(strftime(self::FILENAME_FORMAT)), sprintf("%s \t %s \r\n", time(), $this->message), FILE_APPEND | LOCK_EX);
}
View
8 lib/Heatbeat/Helper/PathHelper.php → lib/Heatbeat/Utility/PathHelper.php
@@ -16,23 +16,23 @@
* limitations under the License.
*
* @category Heatbeat
- * @package Heatbeat\Helper
+ * @package Heatbeat\Utility
* @author Osman Ungur <osmanungur@gmail.com>
* @copyright 2011 Osman Ungur
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link http://github.com/import/heatbeat
*/
-namespace Heatbeat\Helper;
+namespace Heatbeat\Utility;
/**
* Helper methods for common file paths
*
* @category Heatbeat
- * @package Heatbeat\Command\RRDTool
+ * @package Heatbeat\Utility
* @author Osman Ungur <osmanungur@gmail.com>
*/
-class PathHelper {
+class PathUtility {
/**
*

0 comments on commit bb11b7b

Please sign in to comment.