Skip to content

Commit

Permalink
Fix delivery lint offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
afaundez committed Feb 8, 2018
1 parent 576145e commit 0021735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions resources/plugin_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
property :user, String

action :install do

git_client 'default'

Chef::Log.info ::File.dirname(new_resource.node_build_root)
Expand All @@ -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
4 changes: 1 addition & 3 deletions resources/standalone_install.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
property :prefix, String, default: '/usr/local'

action :install do

node_build_plugin_install node_build_cache do
user 'root'
end

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
Expand Down

0 comments on commit 0021735

Please sign in to comment.