Skip to content

Commit dfa4c0c

Browse files
committed
(maint) use upload_file instead of calling external bolt
1 parent aa28a15 commit dfa4c0c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Rakefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ namespace :litmus do
104104
else
105105
args[:target_node_name]
106106
end
107-
# TODO: Currently this is Linux targets only. no windows localhost
108-
tmp_path = '/tmp/'
109107
puts 'Copying gem to targets...'
110-
run_local_command("bolt file upload #{gem_tar} #{tmp_path}#{File.basename(gem_tar)} --targets #{target_string} --inventoryfile inventory.yaml")
108+
upload_file(gem_tar, File.basename(gem_tar), target_string, inventory: inventory_hash)
111109

112110
# Install dependent gems
113111
puts 'Installing yard gem...'
@@ -116,7 +114,7 @@ namespace :litmus do
116114
install_remote_gem('rgen', target_nodes, inventory_hash)
117115
# Install puppet-strings
118116
puts 'Installing puppet-strings gem...'
119-
install_remote_gem(tmp_path + File.basename(gem_tar), target_nodes, inventory_hash)
117+
install_remote_gem(File.basename(gem_tar), target_nodes, inventory_hash)
120118
puts 'Installed'
121119
end
122120
end

0 commit comments

Comments
 (0)