I was trying to run a command
mkdir -p /path/on/disk && touch sample-file
execute 'create directory' do
command 'mkdir -p /path/on/disk && touch sample-file'
Despite your laziness, here's something similar to the thing you want to achieve (your question is very unclear).
directory "/path/on/disk" do recursive true end file "/path/on/disk/sample-file" do content "" action :create_if_missing end