From c098f57f5dfc4588673ac62083611736c8a75136 Mon Sep 17 00:00:00 2001 From: Danilo Sousa Date: Fri, 19 Feb 2016 22:17:37 -0200 Subject: refactor `#remote_repo` to not rely on `#single_repo?` config even in the case we have groups, we can assume is only one repository if the `remote_repo` config is a String. --- lib/oxidized/hook/githubrepo.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb index 0c75c68..7fc6677 100644 --- a/lib/oxidized/hook/githubrepo.rb +++ b/lib/oxidized/hook/githubrepo.rb @@ -55,15 +55,10 @@ class GithubRepo < Oxidized::Hook end def remote_repo(node) - if node.group.nil? || single_repo? + if node.group.nil? || cfg.remote_repo.is_a?(String) cfg.remote_repo else cfg.remote_repo[node.group] end end - - def single_repo? - Oxidized.config.output.git.single_repo? - end - end -- cgit v1.2.1