def inside(&block)
      if COOKBOOK_COMMANDS.any? { |c| command =~ /#{c}/ }
        Strainer.ui.debug "Detected '#{command}' should be run from inside the cookbook"
        inside_cookbook(&block)
      else
        Strainer.ui.debug "Detected '#{command}' should be run from inside the sandbox"
        inside_sandbox(&block)
      end
    end
def inside(&block)
      if COOKBOOK_COMMANDS.any? { |c| command =~ /#{c}/ }
        Strainer.ui.debug "Detected '#{command}' should be run from inside the cookbook"
        inside_cookbook(&block)
      else
        Strainer.ui.debug "Detected '#{command}' should be run from inside the sandbox"
        inside_sandbox(&block)
      end
    end
Logic gate to determine if a command should be run from the sandbox or the cookbook.
 @see {inside_cookbook}
 @see {inside_sandbox}