From 0021735faf52acc80c11445cbf2de8a77bfc7764 Mon Sep 17 00:00:00 2001 From: Alvaro Faundez Date: Thu, 8 Feb 2018 18:32:52 -0500 Subject: [PATCH] Fix delivery lint offenses --- resources/plugin_install.rb | 3 +-- resources/standalone_install.rb | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/plugin_install.rb b/resources/plugin_install.rb index 3e084d8..d1dcecd 100644 --- a/resources/plugin_install.rb +++ b/resources/plugin_install.rb @@ -4,7 +4,6 @@ property :user, String action :install do - git_client 'default' Chef::Log.info ::File.dirname(new_resource.node_build_root) @@ -21,6 +20,6 @@ user new_resource.user if new_resource.user group new_resource.user if new_resource.user action :checkout - not_if { ::File.exists?(::File.join(new_resource.node_build_root, 'bin', 'node-build')) } + not_if { ::File.exist?(::File.join(new_resource.node_build_root, 'bin', 'node-build')) } end end diff --git a/resources/standalone_install.rb b/resources/standalone_install.rb index 62c4694..c3c9ab2 100644 --- a/resources/standalone_install.rb +++ b/resources/standalone_install.rb @@ -1,7 +1,6 @@ property :prefix, String, default: '/usr/local' action :install do - node_build_plugin_install node_build_cache do user 'root' end @@ -9,13 +8,12 @@ execute "node-build standalone install #{new_resource.prefix}" do cwd node_build_cache command 'sh install.sh' - environment({ 'PREFIX' => new_resource.prefix }) + environment('PREFIX' => new_resource.prefix) creates node_build_binary end end action_class do - def node_build_cache ::File.join(Chef::Config[:file_cache_path], 'node-build') end