lib/specinfra/command/linux/base/lxc_container.rb in specinfra-2.0.0.beta15 vs lib/specinfra/command/linux/base/lxc_container.rb in specinfra-2.0.0.beta16

- old
+ new

@@ -1,9 +1,11 @@ class Specinfra::Command::Linux::Base::LxcContainer < Specinfra::Command::Base::LxcContainer - def check_exists(container) - "lxc-ls -1 | grep -w #{escape(container)}" - end + class << self + def check_exists(container) + "lxc-ls -1 | grep -w #{escape(container)}" + end - def check_is_running(container) - "lxc-info -n #{escape(container)} -s | grep -w RUNNING" + def check_is_running(container) + "lxc-info -n #{escape(container)} -s | grep -w RUNNING" + end end end