Skip to content

issei-m/ScmRevisionNumberRetriever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScmRevisionNumberRetriever

Build Status

This library just reads specified file content and returns it.

If you use Capistrano 3 to deploy app, The REVISION file is located to your application's root directory. This means it might help you to see the current revision which project now refers to like this:

$retriever = new \Issei\ScmRevisionNumberRetriever('/path/to/your-project/REVISION');
var_dump($retriever->getCurrentRevisionNumber()); // content of "/path/to/your-project/REVISION"

About

Retrieves the current revision number which project now refers to.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages