lib/rbundle.rb in rbundle-0.2.2 vs lib/rbundle.rb in rbundle-0.2.3
- old
+ new
@@ -1,9 +1,9 @@
require "rbundle/version"
require "yaml"
-def with_retries(retries = 3, back_off = 60, args=[], &block)
+def with_retries(retries = 3, back_off = 60, args, &block)
counter = 1
until counter > retries do
begin
block.call(*args)
break
@@ -31,10 +31,10 @@
def self.command_inspector(exit_code)
throw 'Installation failed.' if exit_code != 0
end
def self.install_installer
- with_retries do
+ with_retries(args=[]) do
puts "Installing devtools"
command = %{
R --vanilla --slave -e "if (! ('devtools' %in% installed.packages()[,'Package'])) install.packages(pkgs='devtools', repos=c('https://cloud.r-project.org'))"
}
puts "Executing #{command}"
\ No newline at end of file