aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/remote/leap_plugin.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-21 14:50:44 -0700
committerelijah <elijah@riseup.net>2014-10-21 14:50:44 -0700
commit7a0022a0a5fa214892b29221a2fae904dbc5b856 (patch)
treec25672a5cd7df2f6d249f4d81065b3137a947719 /lib/leap_cli/remote/leap_plugin.rb
parent34e346d039091723912d4ccbb1673ffc438b293b (diff)
downloadleap_cli-7a0022a0a5fa214892b29221a2fae904dbc5b856.tar.gz
leap_cli-7a0022a0a5fa214892b29221a2fae904dbc5b856.tar.bz2
removed constants.rb, now defined in platform.rb
Diffstat (limited to 'lib/leap_cli/remote/leap_plugin.rb')
-rw-r--r--lib/leap_cli/remote/leap_plugin.rb4
1 files changed, 2 insertions, 2 deletions
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
#