lib/linux_admin/yum.rb in linux_admin-0.16.0 vs lib/linux_admin/yum.rb in linux_admin-0.17.0

- old
+ new

@@ -3,11 +3,11 @@ module LinuxAdmin class Yum def self.create_repo(path, options = {}) raise ArgumentError, "path is required" unless path - options = options.reverse_merge(:database => true, :unique_file_names => true) + options = {:database => true, :unique_file_names => true}.merge(options) FileUtils.mkdir_p(path) cmd = "createrepo" params = {nil => path} @@ -18,10 +18,10 @@ end def self.download_packages(path, packages, options = {}) raise ArgumentError, "path is required" unless path raise ArgumentError, "packages are required" unless packages - options = options.reverse_merge(:mirror_type => :package) + options = {:mirror_type => :package}.merge(options) FileUtils.mkdir_p(path) cmd = case options[:mirror_type] when :package; "repotrack"