lib/specinfra/command/openbsd/base/package.rb in specinfra-2.0.0.beta40 vs lib/specinfra/command/openbsd/base/package.rb in specinfra-2.0.0.beta41
- old
+ new
@@ -6,10 +6,10 @@
else
"pkg_info -a | cut -d ' ' -f 1 | grep #{escape(package)}"
end
end
- def install(package, version=nil)
- "pkg_add #{package}"
+ def install(package, version=nil, option='')
+ "pkg_add #{option} #{package}"
end
end
end