lib/rconf/configurators/git_repo_configurator.rb in rconf-0.7.8 vs lib/rconf/configurators/git_repo_configurator.rb in rconf-0.7.9

- old
+ new

@@ -27,11 +27,11 @@ # Clone git repo and run build commands if given # # === Return # true:: Always return true - def run + def run_linux if File.exist?(path) unless File.exist?(File.join(path, '.git')) FileUtils.mv(path, "#{path}_old") post_note "Had to move #{path} to #{path}_old" end @@ -50,9 +50,19 @@ report_success end end true end + alias :run_darwin :run_linux + + # Clone git repo and run build commands if given on Windows + # + # === Return + # true:: Always return true + def run_windows + true # TBD + end + end end