Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/linux_admin/yum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.download_packages(path, packages, options = {})
FileUtils.mkdir_p(path)

cmd = case options[:mirror_type]
when :package; "yum repotrack"
when :package; "repotrack"
else; raise ArgumentError, "mirror_type unsupported"
end
params = {"-p" => path}
Expand Down
2 changes: 1 addition & 1 deletion spec/yum_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

context ".download_packages" do
it "with valid input" do
described_class.should_receive(:run!).once.with("yum repotrack", {:params=>{"-p"=>"some/path", nil=>"pkg_a pkg_b"}})
described_class.should_receive(:run!).once.with("repotrack", {:params=>{"-p"=>"some/path", nil=>"pkg_a pkg_b"}})
described_class.download_packages("some/path", "pkg_a pkg_b")
end

Expand Down