Skip to content

Commit

Permalink
ADD Model\PuppetModule::isOnBranch()
Browse files Browse the repository at this point in the history
  • Loading branch information
goten4 committed May 13, 2015
1 parent c3c3688 commit 9e34003
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/KmbPmProxy/Model/PuppetModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ public function getVersion()
return $this->version;
}

/**
* @return boolean
*/
public function isOnBranch()
{
return preg_match('/^[0-9.]+-[0-9]+-[a-fA-F0-9]{7}-.+$/', $this->version) ? true : false;
}

/**
* Set Source.
*
Expand Down

0 comments on commit 9e34003

Please sign in to comment.