Module: RepoHelper
- Included in:
- Deploy
- Defined in:
- lib/punt/helper/repo_helper.rb
Instance Method Summary collapse
Instance Method Details
#get_repo(environment) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/punt/helper/repo_helper.rb', line 2 def get_repo(environment) env_repo = environment["repo"] repo = RepoGit.new if env_repo == "git" raise "No repo available for the given repo '#{env_repo}'" unless repo return repo end |