From 93123466e50e24d1bbef9e819a45518981361d5d Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 2 Jun 2013 23:32:21 -0700 Subject: now we require a leap_platform/platform.rb config file. --- lib/leap_cli/commands/node.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/commands/node.rb') diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 21822d1..bf552d3 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -75,7 +75,7 @@ module LeapCli; module Commands node = get_node_from_args(args) new_name = args.last ensure_dir [:node_files_dir, new_name] - Path::NODE_PATHS.each do |path| + Leap::Platform.node_files.each do |path| rename_file! [path, node.name], [path, new_name] end remove_directory! [:node_files_dir, node.name] @@ -87,7 +87,7 @@ module LeapCli; module Commands node.command :rm do |rm| rm.action do |global_options,options,args| node = get_node_from_args(args) - (Path::NODE_PATHS + [:node_files_dir]).each do |path| + (Leap::Platform.node_files + [:node_files_dir]).each do |path| remove_file! [path, node.name] end if node.vagrant? -- cgit v1.2.3