diff options
author | elijah <elijah@riseup.net> | 2013-06-02 23:32:21 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-02 23:32:21 -0700 |
commit | 93123466e50e24d1bbef9e819a45518981361d5d (patch) | |
tree | f47af837e4e722e77d4dbf8132f72d37060fb53a /lib/leap_cli/commands | |
parent | 407282d3730a64c8395e3a05822b49f7e4ce4793 (diff) |
now we require a leap_platform/platform.rb config file.
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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? |