From 7a0022a0a5fa214892b29221a2fae904dbc5b856 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 21 Oct 2014 14:50:44 -0700 Subject: removed constants.rb, now defined in platform.rb --- lib/leap_cli/remote/leap_plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/remote/leap_plugin.rb') diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index a284712..af88c2a 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -26,7 +26,7 @@ module LeapCli; module Remote; module LeapPlugin # def assert_initialized begin - test_initialized_file = "test -f #{INITIALIZED_FILE}" + test_initialized_file = "test -f #{Leap::Platform.init_path}" check_required_packages = "! dpkg-query -W --showformat='${Status}\n' #{required_packages} 2>&1 | grep -q -E '(deinstall|no packages)'" run "#{test_initialized_file} && #{check_required_packages} && echo ok" rescue Capistrano::CommandError => exc @@ -57,7 +57,7 @@ module LeapCli; module Remote; module LeapPlugin end def mark_initialized - run "touch #{INITIALIZED_FILE}" + run "touch #{Leap::Platform.init_path}" end # -- cgit v1.2.3