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 @@ -9,7 +9,7 @@ def self.create_repo(path, options = {})

FileUtils.mkdir_p(path)

cmd = "yum createrepo"
cmd = "createrepo"
params = {nil => path}
params["--database"] = nil if options[:database]
params["--unique-md-filenames"] = nil if options[:unique_file_names]
Expand Down
4 changes: 2 additions & 2 deletions spec/yum_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

context ".create_repo" do
it "default arguments" do
described_class.should_receive(:run!).once.with("yum createrepo", {:params=>{nil=>"some/path", "--database"=>nil, "--unique-md-filenames"=>nil}})
described_class.should_receive(:run!).once.with("createrepo", {:params=>{nil=>"some/path", "--database"=>nil, "--unique-md-filenames"=>nil}})
described_class.create_repo("some/path")
end

it "bare create" do
described_class.should_receive(:run!).once.with("yum createrepo", {:params=>{nil=>"some/path"}})
described_class.should_receive(:run!).once.with("createrepo", {:params=>{nil=>"some/path"}})
described_class.create_repo("some/path", :database => false, :unique_file_names => false)
end
end
Expand Down