file "#{project_name}.local.vhost.conf" do %{ ServerName #{project_name}.local DocumentRoot "#{root}/public" RackEnv development Order allow,deny Allow from all }.strip end default_to = "/etc/apache2/passenger_pane_vhosts" answer = ask "Where should we write out vhost config: [#{default_to} is default]" filename = answer.empty? ? default_to : answer sudo "mv ./#{project_name}.local.vhost.conf #{filename}"