Commit 825096bb authored by Seth Chisamore's avatar Seth Chisamore

Merge pull request #551 from chef/shain/add_publish_debug

Add info message for publish cli corner case
parents c35357d1 bda79a5a
......@@ -112,6 +112,10 @@ module Omnibus
publish_packages.concat(build_packages)
end
if publish_packages.empty?
log.info(log_key) { 'No packages found, skipping publish' }
end
publish_packages
end
end
......
......@@ -107,6 +107,20 @@ module Omnibus
end
end
end
context 'there are no packages to publish' do
before do
allow(FileSyncer).to receive(:glob)
.with(pattern)
.and_return([])
end
it 'prints a warning' do
output = capture_logging { subject.packages }
expect(output).to include('No packages found, skipping publish')
end
end
end
describe '#publish' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment