can we use bash/power shell resources in ruby functions?