lib/linux_admin/common.rb in linux_admin-0.10.1 vs lib/linux_admin/common.rb in linux_admin-0.11.0
- old
+ new
@@ -4,9 +4,13 @@
module Common
def cmd(cmd)
Distros.local.command(cmd)
end
+ def cmd?(cmd)
+ Distros.local.command?(cmd)
+ end
+
def run(cmd, options = {})
AwesomeSpawn.logger ||= logger
AwesomeSpawn.run(cmd, options)
end