File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,8 @@ namespace :litmus do
104
104
else
105
105
args [ :target_node_name ]
106
106
end
107
- # TODO: Currently this is Linux targets only. no windows localhost
108
- tmp_path = '/tmp/'
109
107
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 )
111
109
112
110
# Install dependent gems
113
111
puts 'Installing yard gem...'
@@ -116,7 +114,7 @@ namespace :litmus do
116
114
install_remote_gem ( 'rgen' , target_nodes , inventory_hash )
117
115
# Install puppet-strings
118
116
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 )
120
118
puts 'Installed'
121
119
end
122
120
end
You can’t perform that action at this time.
0 commit comments